diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2010-06-19 18:08:19 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2010-06-19 18:08:19 -0500 |
commit | 1fd247d087ed73896d2b2156039dff2a353f6db6 (patch) | |
tree | be5161744f37d71df913cba94f4fda8de0e6e62b | |
parent | 8e63749b7ec708df9ea21cde0b99d060e71dbb9a (diff) |
Fix stupid error in sata_alpm
-rw-r--r-- | pm/power.d/sata_alpm | 2 |
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. || \ |