From 2c1b5ba089a3b2027a1756f72239090a371043aa Mon Sep 17 00:00:00 2001 From: Rob White Date: Wed, 2 May 2018 16:39:31 +0100 Subject: [PATCH] nodogsplash: add startup checks and restart hook --- nodogsplash2/files/nodogsplash.init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodogsplash2/files/nodogsplash.init b/nodogsplash2/files/nodogsplash.init index 824301d..0e77de8 100755 --- a/nodogsplash2/files/nodogsplash.init +++ b/nodogsplash2/files/nodogsplash.init @@ -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 }