summaryrefslogtreecommitdiff
path: root/pm/power.d
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
parent48bf23b6f42f1a09dbfcf536430c34bb2c20d1de (diff)
parent87883a1cc89618b5a985a9c78f8234fc1570c54c (diff)
Merge branch 'pm-utils-1.4'HEADmaster
Diffstat (limited to 'pm/power.d')
-rw-r--r--pm/power.d/disable_wol2
-rw-r--r--pm/power.d/sata_alpm2
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. || \