Use numeric prefixes for uci-defaults scripts
[project/luci.git] / applications / luci-app-radvd / root / etc / uci-defaults / 40_luci-radvd
diff --git a/applications/luci-app-radvd/root/etc/uci-defaults/40_luci-radvd b/applications/luci-app-radvd/root/etc/uci-defaults/40_luci-radvd
new file mode 100755 (executable)
index 0000000..c1f3b75
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+       delete ucitrack.@radvd[-1]
+       add ucitrack radvd
+       set ucitrack.@radvd[-1].init=radvd
+       commit ucitrack
+EOF
+
+rm -f /tmp/luci-indexcache
+exit 0