nodogsplash2: init script cleanup and refactoring
[feed/routing.git] / nodogsplash2 / files / usr / lib / nodogsplash / restart.sh
1 #!/bin/sh
2
3 # Check if nodogsplash is running
4 if ndsctl status &> /dev/null; then
5 if [ "$(uci -q get nodogsplash.@nodogsplash[0].fwhook_enabled)" = "1" ]; then
6 /etc/init.d/nodogsplash restart
7 fi
8 fi