Code: Select all
usbsleep_IsAvailable()
{
# On the firmware 5 hd-idle already keeps an eye on the USB disks
# You can remove this check to re-enable this daemon.
# In that case you'd better disable the firmware disk sleep daemon
# [ ${TWEAKS_FIRMWARE} -ge 500 ] && return 1
for file in "${TWEAKS_PKG_ROOT}/sbin/sg_start"
do
[ -x ${file} ] && echo ${file} && return 0
done
return 1
}
Code: Select all
# We need hdparm to get it going