summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-banip/root
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2018-11-11 14:59:39 +0100
committerGitHub <noreply@github.com>2018-11-11 14:59:39 +0100
commitad4c7b01532471ee09a04fc1ae288e6e15849a8b (patch)
tree1316dd64bdd25b71da9e12646a850ac42998c512 /applications/luci-app-banip/root
parentbe47cb741f488a14fb4b11a89c3a8b2e7b44d6cb (diff)
parente50021f77fbc593cee841a02ad66c4bfea072f9e (diff)
Merge pull request #2264 from dibdot/banip
luci-app-banip: new package
Diffstat (limited to 'applications/luci-app-banip/root')
-rwxr-xr-xapplications/luci-app-banip/root/etc/uci-defaults/40_luci-banip11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-banip/root/etc/uci-defaults/40_luci-banip b/applications/luci-app-banip/root/etc/uci-defaults/40_luci-banip
new file mode 100755
index 0000000000..adb22da91d
--- /dev/null
+++ b/applications/luci-app-banip/root/etc/uci-defaults/40_luci-banip
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@banip[-1]
+ add ucitrack banip
+ set ucitrack.@banip[-1].init=banip
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0