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