whitespace and errormessages
This commit is contained in:
parent
114620aa0c
commit
b450226f80
@ -7,10 +7,10 @@ ifname_to_dev () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
ifup)
|
ifup)
|
||||||
DEVICE="$(ifname_to_dev "$INTERFACE")"
|
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 &
|
/etc/init.d/gluon-respondd restart_if_running &
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -13,7 +13,7 @@ LOCK=/var/run/gluon-respondd.lock
|
|||||||
|
|
||||||
do_start() {
|
do_start() {
|
||||||
DEVS=""
|
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
|
do
|
||||||
DEVS="$DEVS -i $dev"
|
DEVS="$DEVS -i $dev"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user