applications: enable related init scripts on opkg install, otherwise users would...
[project/luci.git] / applications / luci-hd_idle / ipkg / postinst
1 #!/bin/sh
2 [ -n "${IPKG_INSTROOT}" ] || {
3 ( . /etc/uci-defaults/luci-hd_idle ) && rm -f /etc/uci-defaults/luci-hd_idle
4 /etc/init.d/hd-idle enabled || /etc/init.d/hd-idle enable
5 }