summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-noddos/root/etc/uci-defaults
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-noddos/root/etc/uci-defaults')
-rw-r--r--applications/luci-app-noddos/root/etc/uci-defaults/40_luci-noddos14
1 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-noddos/root/etc/uci-defaults/40_luci-noddos b/applications/luci-app-noddos/root/etc/uci-defaults/40_luci-noddos
new file mode 100644
index 0000000000..17abbc41ca
--- /dev/null
+++ b/applications/luci-app-noddos/root/etc/uci-defaults/40_luci-noddos
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Copyright (C) 2017 Steven Hessing (steven.hessing@live.com)
+# This is free software, licensed under the GNU General Public License v3
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@noddos[-1]
+ add ucitrack noddos
+ set ucitrack.@noddos[-1].init=noddos
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0