nodogsplash: add startup checks and restart hook

This commit is contained in:
Rob White 2018-05-02 16:39:31 +01:00 committed by GitHub
parent eff26fc783
commit 2c1b5ba089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,10 +252,11 @@ depends() {
if [ "$1" = "iptables" ] ; then
if [ $(uci get nodogsplash.@nodogsplash[0].fwhook_enabled) = "1" ] ; then
if $WD_DIR/ndsctl status > /dev/null; then
echo " * Restarting NodogSplash"
/etc/init.d/nodogsplash restart
echo " * Restarting NodogSplash"
/etc/init.d/nodogsplash restart
fi
else echo " * NodogSplash fwhook is disabled"
else echo " * NodogSplash fwhook is disabled"
fi
fi
}