flm01/mote/v2/openwrt/package/luci/applications/luci-hd-idle/ipkg/postinst

6 lines
180 B
Bash

#!/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
}