[PATCH] gemini: Add hdparm setting
Andrey Jr. Melnikov
temnota.am at gmail.com
Thu Jul 15 16:42:47 PDT 2021
Linus Walleij <linus.walleij at linaro.org> 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
More information about the openwrt-devel
mailing list