diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2010-06-22 19:12:17 -0500 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2010-06-22 19:12:17 -0500 |
commit | 7017b46d105261697f94b1ae476ed6e3ddf88a76 (patch) | |
tree | 921154d47c47576de76d5c50e7c3f31caa78d352 /pm/power.d | |
parent | 48bf23b6f42f1a09dbfcf536430c34bb2c20d1de (diff) | |
parent | 87883a1cc89618b5a985a9c78f8234fc1570c54c (diff) |
Diffstat (limited to 'pm/power.d')
-rw-r--r-- | pm/power.d/disable_wol | 2 | ||||
-rw-r--r-- | pm/power.d/sata_alpm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pm/power.d/disable_wol b/pm/power.d/disable_wol index 027eec5..ab4dda9 100644 --- a/pm/power.d/disable_wol +++ b/pm/power.d/disable_wol @@ -6,7 +6,7 @@ command_exists ethtool || exit $NA set_wol_status() { for d in "/sys/class/net/"*; do - [ -f "$d/wireless" ] && continue + [ -e "$d/wireless" ] && continue [ -h "$d/device/driver" ] || continue printf "Setting Wake On Lan for %s to %s..." "${d##*/}" "$1" case $1 in 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. || \ |