summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nextdns/root/etc/uci-defaults/60_luci-nextdns
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-nextdns/root/etc/uci-defaults/60_luci-nextdns')
-rwxr-xr-xapplications/luci-app-nextdns/root/etc/uci-defaults/60_luci-nextdns11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-nextdns/root/etc/uci-defaults/60_luci-nextdns b/applications/luci-app-nextdns/root/etc/uci-defaults/60_luci-nextdns
new file mode 100755
index 000000000..95fc92280
--- /dev/null
+++ b/applications/luci-app-nextdns/root/etc/uci-defaults/60_luci-nextdns
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@nextdns[-1]
+ add ucitrack nextdns
+ set ucitrack.@nextdns[-1].init=nextdns
+ commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0