From 6245e364fab074fae8ddd3e542745be3c0858d3c Mon Sep 17 00:00:00 2001 From: Rob White Date: Wed, 2 May 2018 18:52:58 +0100 Subject: [PATCH] nodogsplash: add startup checks and restart hook --- nodogsplash2/files/nodogsplash.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodogsplash2/files/nodogsplash.init b/nodogsplash2/files/nodogsplash.init index 04ba71f..87229c9 100755 --- a/nodogsplash2/files/nodogsplash.init +++ b/nodogsplash2/files/nodogsplash.init @@ -267,9 +267,9 @@ start_service() { if [ $(uci get nodogsplash.@nodogsplash[0].fwhook_enabled) = "1" ] ; then if ! uci get firewall.nodogsplash2.path &> /dev/null ; then - if [ -f '/tmp/etc/ndshook.include' ] ; then - rm /tmp/etc/ndshook.include - fi + if [ -f '/tmp/etc/ndshook.include' ] ; then + rm /tmp/etc/ndshook.include + fi uci delete firewall.nodogsplash2 2> /dev/null uci set firewall.nodogsplash2=include uci set firewall.nodogsplash2.type=script