summaryrefslogtreecommitdiff
path: root/pm/power.d/sata_alpm
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2010-06-22 19:12:17 -0500
committerVictor Lowther <victor.lowther@gmail.com>2010-06-22 19:12:17 -0500
commit7017b46d105261697f94b1ae476ed6e3ddf88a76 (patch)
tree921154d47c47576de76d5c50e7c3f31caa78d352 /pm/power.d/sata_alpm
parent48bf23b6f42f1a09dbfcf536430c34bb2c20d1de (diff)
parent87883a1cc89618b5a985a9c78f8234fc1570c54c (diff)
Merge branch 'pm-utils-1.4'HEADmaster
Diffstat (limited to 'pm/power.d/sata_alpm')
-rw-r--r--pm/power.d/sata_alpm2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/power.d/sata_alpm b/pm/power.d/sata_alpm
index dbe4117..5ede307 100644
--- a/pm/power.d/sata_alpm
+++ b/pm/power.d/sata_alpm
@@ -26,7 +26,7 @@ set_sata_alpm() {
kv="$(uname -r)"
[ "$kv" ] || exit $NA #for paranoia's sake
[ "${kv%-*}" \< "2.6.33" ] && exit $NA # avoid fs corruption
- for f in /sys/class/scsi_host/host*/link_power_management_policy; do
+ for f in /sys/class/scsi_host/host*; do
[ -w "$f/link_power_management_policy" ] || continue
printf "Setting SATA APLM on %s to %s..." "${f##*/}" "$1"
echo "$1" > "$f/link_power_management_policy" && echo Done. || \