summaryrefslogtreecommitdiff
path: root/pm/sleep.d/99video
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-01-31 16:08:57 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-01-31 16:31:07 -0600
commit5953cb0f775e2fe66d74ba8f0581ee8eb00e8393 (patch)
tree21f6e38692982acf8d42b8c7f4cb039a59a6c4b7 /pm/sleep.d/99video
parent5d1e6ad771b709bcbeb67b9c165160b95ab0dc0f (diff)
CPUfreq fixups:
Only look at cpus that have an active governor Fix inverted conditional when checking to see if we should restore a governor 99video vixes: I had the tests backwards for the vbe|radeon helpers backwards. Woe is me. Overall: Minor quotation fixes.
Diffstat (limited to 'pm/sleep.d/99video')
-rwxr-xr-xpm/sleep.d/99video11
1 files changed, 5 insertions, 6 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index c8dab94..5a850ec 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -9,7 +9,6 @@
. /usr/lib/pm-utils/functions
-
reset_brightness() {
for bl in /sys/class/backlight/* ; do
[ -f $bl/brightness ] || continue
@@ -20,15 +19,15 @@ reset_brightness() {
}
if command_exists vbetool; then
- vbe() { echo "vbetool not installed!" 1>&2; return 1; }
-else
vbe() { vbetool "$@"; }
+else
+ vbe() { echo "vbetool not installed!" 1>&2; return 1; }
fi
if command_exists radeontool; then
- radeon() { echo "radeontool not found" 1>&2; return 1; }
-else
radeon() { radeontool "$@"; }
+else
+ radeon() { echo "radeontool not found" 1>&2; return 1; }
fi
resume_video()
@@ -62,7 +61,7 @@ case "$1" in
resume_video
;;
thaw)
- if [ "$HIBERNATE_RESUME_POST_VIDEO" = "yes" ]; then
+ if [ "${HIBERNATE_RESUME_POST_VIDEO}" = "yes" ]; then
resume_video
fi
;;