summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-hd-idle/root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-hd-idle/root/etc')
-rwxr-xr-x[-rw-r--r--]applications/luci-hd-idle/root/etc/uci-defaults/luci-hd_idle12
1 files changed, 8 insertions, 4 deletions
diff --git a/applications/luci-hd-idle/root/etc/uci-defaults/luci-hd_idle b/applications/luci-hd-idle/root/etc/uci-defaults/luci-hd_idle
index 6a37176a35..92f4356367 100644..100755
--- a/applications/luci-hd-idle/root/etc/uci-defaults/luci-hd_idle
+++ b/applications/luci-hd-idle/root/etc/uci-defaults/luci-hd_idle
@@ -1,7 +1,11 @@
#!/bin/sh
-uci batch <<-EOF
- add ucitrack hd-idle
- set ucitrack.@hd-idle[-1].init=hd-idle
- commit ucitrack
+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