diff options
Diffstat (limited to 'applications/luci-app-hd-idle/ipkg/postinst')
-rw-r--r-- | applications/luci-app-hd-idle/ipkg/postinst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/applications/luci-app-hd-idle/ipkg/postinst b/applications/luci-app-hd-idle/ipkg/postinst new file mode 100644 index 000000000..c12bac57f --- /dev/null +++ b/applications/luci-app-hd-idle/ipkg/postinst @@ -0,0 +1,6 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/luci-hd_idle ) && rm -f /etc/uci-defaults/luci-hd_idle + /etc/init.d/hd-idle enabled || /etc/init.d/hd-idle enable + exit 0 +} |