nodogsplash: add startup checks and restart hook
This commit is contained in:
parent
68fe8af895
commit
6245e364fa
1 changed files with 3 additions and 3 deletions
|
@ -267,9 +267,9 @@ start_service() {
|
||||||
|
|
||||||
if [ $(uci get nodogsplash.@nodogsplash[0].fwhook_enabled) = "1" ] ; then
|
if [ $(uci get nodogsplash.@nodogsplash[0].fwhook_enabled) = "1" ] ; then
|
||||||
if ! uci get firewall.nodogsplash2.path &> /dev/null ; then
|
if ! uci get firewall.nodogsplash2.path &> /dev/null ; then
|
||||||
if [ -f '/tmp/etc/ndshook.include' ] ; then
|
if [ -f '/tmp/etc/ndshook.include' ] ; then
|
||||||
rm /tmp/etc/ndshook.include
|
rm /tmp/etc/ndshook.include
|
||||||
fi
|
fi
|
||||||
uci delete firewall.nodogsplash2 2> /dev/null
|
uci delete firewall.nodogsplash2 2> /dev/null
|
||||||
uci set firewall.nodogsplash2=include
|
uci set firewall.nodogsplash2=include
|
||||||
uci set firewall.nodogsplash2.type=script
|
uci set firewall.nodogsplash2.type=script
|
||||||
|
|
Loading…
Reference in a new issue