summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-hd-idle/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-hd-idle/root/etc')
-rwxr-xr-xapplications/luci-app-hd-idle/root/etc/uci-defaults/luci-hd_idle11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-hd-idle/root/etc/uci-defaults/luci-hd_idle b/applications/luci-app-hd-idle/root/etc/uci-defaults/luci-hd_idle
new file mode 100755
index 0000000000..92f4356367
--- /dev/null
+++ b/applications/luci-app-hd-idle/root/etc/uci-defaults/luci-hd_idle
@@ -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