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