mirror of
https://github.com/thegeneralist01/config.git
synced 2026-10-09 21:03:30 +02:00
nixos: apply SATA link power policy consistently
This commit is contained in:
parent
f32139af2c
commit
de97ce6eeb
1 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,12 @@
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for host in /sys/class/scsi_host/host*; do
|
||||||
|
if [ -w "$host/link_power_management_policy" ]; then
|
||||||
|
echo med_power_with_dipm > "$host/link_power_management_policy"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# This unmounted archival HDD wakes transparently when accessed.
|
# This unmounted archival HDD wakes transparently when accessed.
|
||||||
disk=/dev/disk/by-id/ata-ST1000DM010-2EP102_ZN1043CH
|
disk=/dev/disk/by-id/ata-ST1000DM010-2EP102_ZN1043CH
|
||||||
if [ -b "$disk" ]; then
|
if [ -b "$disk" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue