use full path within check_gateway script

This commit is contained in:
ohrensessel 2014-08-27 15:39:09 +02:00
parent 68ce6b91d7
commit 32a3802cba

View file

@ -23,12 +23,12 @@ OLD_STATE="$(cat $MESH/gw_mode)"
# Check whether gateway modus has been deactivated # Check whether gateway modus has been deactivated
if [ "$NEW_STATE" == "off" ]; then if [ "$NEW_STATE" == "off" ]; then
# Shutdown DHCP server to prevent renewal of leases # Shutdown DHCP server to prevent renewal of leases
service isc-dhcp-server stop /usr/sbin/service isc-dhcp-server stop
fi fi
# Check whether gateway modus has been activated # Check whether gateway modus has been activated
if [ "$NEW_STATE" == "server" ]; then if [ "$NEW_STATE" == "server" ]; then
# Restart DHCP server and radvd daemon # Restart DHCP server
service isc-dhcp-server start /usr/sbin/service isc-dhcp-server start
fi fi
done done