fix indentation, quotes, stderr
This commit is contained in:
parent
d1110f3cdc
commit
9e79a9f1ef
@ -2,17 +2,15 @@
|
|||||||
|
|
||||||
. /lib/functions/service.sh
|
. /lib/functions/service.sh
|
||||||
|
|
||||||
DEVLIST=/var/run/gluon-respondd.devs
|
|
||||||
|
|
||||||
ifname_to_dev () {
|
ifname_to_dev () {
|
||||||
ifstatus client "$1"|jsonfilter -e "@.device"
|
ifstatus client "$1"|jsonfilter -e "@.device"
|
||||||
}
|
}
|
||||||
|
|
||||||
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)" ] ||
|
[ "$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
|
||||||
|
Loading…
Reference in New Issue
Block a user