Linus Walleij <[email protected]> wrote: > This uses "hdparm" (if present) to get the harddisk into low > power mode on NAS set-ups.
Use hotplug events for this.
i.e. /etc/hotplug.d/block/10-spindown with contents:
if [ "$ACTION" = "add" -a "$DEVTYPE" = "disk" ]; then
case "$DEVNAME" in
sd*) hdparm -S 60 /dev/$DEVNAME
;;
esac
fi
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
