Use numeric prefixes for uci-defaults scripts
[project/luci.git] / applications / luci-app-ddns / root / etc / uci-defaults / 40_luci-ddns
diff --git a/applications/luci-app-ddns/root/etc/uci-defaults/40_luci-ddns b/applications/luci-app-ddns/root/etc/uci-defaults/40_luci-ddns
new file mode 100755 (executable)
index 0000000..9fd875e
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# no longer needed for "Save and Apply" to restart ddns
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@ddns[-1]
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0