[Pm-utils] [PATCH 12/17] Minor quotation fixes in 99video

Victor Lowther victor.lowther at gmail.com
Sat Feb 9 18:31:16 PST 2008


---
 pm/sleep.d/99video |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index 4bfdf83..82f0469 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -11,10 +11,10 @@
 
 reset_brightness() {
 	for bl in /sys/class/backlight/* ; do
-		[ -f $bl/brightness ] || continue
-		BR=$(cat $bl/brightness)
-		echo 0 > $bl/brightness
-		echo $BR > $bl/brightness
+		[ -f "$bl/brightness" ] || continue
+		BR="$(cat $bl/brightness)"
+		echo 0 > "$bl/brightness"
+		echo "$BR" > "$bl/brightness"
 	done
 }
 
@@ -45,7 +45,7 @@ resume_video()
 		vbe vbestate restore < /var/run/vbestate
 	fi
 	if [ "${DISPLAY_QUIRK_VBEMODE_RESTORE}" = "true" ]; then
-		vbe vbemode set $(cat /var/run/vbemode)
+		vbe vbemode set "$(cat /var/run/vbemode)"
 	fi
 	if [ "${DISPLAY_QUIRK_DPMS_ON}" = "true" ]; then
 		vbe dpms on
-- 
1.5.3.8



More information about the Pm-utils mailing list