projects
/
feed
/
routing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nodogsplash: update to release 3.0.0
[feed/routing.git]
/
nodogsplash
/
files
/
usr
/
lib
/
nodogsplash
/
restart.sh
diff --git a/nodogsplash/files/usr/lib/nodogsplash/restart.sh
b/nodogsplash/files/usr/lib/nodogsplash/restart.sh
new file mode 100755
(executable)
index 0000000..
e67f11d
--- /dev/null
+++ b/
nodogsplash/files/usr/lib/nodogsplash/restart.sh
@@ -0,0
+1,8
@@
+#!/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