whitespace and errormessages

This commit is contained in:
Christof Schulze 2016-12-07 19:42:46 +01:00
parent 114620aa0c
commit b450226f80
2 changed files with 3 additions and 3 deletions

View File

@ -7,10 +7,10 @@ ifname_to_dev () {
}
case "$ACTION" in
ifup)
ifup)
DEVICE="$(ifname_to_dev "$INTERFACE")"
[ "$DEVICE" != "$(cat /lib/gluon/respondd/client.dev 2>/dev/null)" ] ||
[ "$DEVICE" != "$(cat /lib/gluon/respondd/client.dev 2>/dev/null)" ] ||
/etc/init.d/gluon-respondd restart_if_running &
;;
esac

View File

@ -13,7 +13,7 @@ LOCK=/var/run/gluon-respondd.lock
do_start() {
DEVS=""
for dev in $( ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device") $(cat /lib/gluon/respondd/client.dev)
for dev in $( ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device") $(cat /lib/gluon/respondd/client.dev 2>/dev/null)
do
DEVS="$DEVS -i $dev"
done