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