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