routing/nodogsplash2/files/usr/lib/nodogsplash/restart.sh
Moritz Warning fa70e4cdc6 nodogsplash2: init script cleanup and refactoring
- refactor firewall restart hook
- remove dead code
- shorten existing code

Signed-off-by: Moritz Warning <moritzwarning@web.de>
2018-07-23 22:25:15 +02:00

8 lines
205 B
Bash
Executable file

#!/bin/sh
# Check if nodogsplash is running
if ndsctl status &> /dev/null; then
if [ "$(uci -q get nodogsplash.@nodogsplash[0].fwhook_enabled)" = "1" ]; then
/etc/init.d/nodogsplash restart
fi
fi