diff options
author | Michael Biebl <mbiebl@gmail.com> | 2008-02-16 10:19:40 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-02-16 10:19:40 -0600 |
commit | 2b99001c87461df573cf6ae3091f88e193ede23a (patch) | |
tree | 666769c517fa442ec7ab9744076121df263668bc /pm/sleep.d/99video | |
parent | 03a59b39d415366cb7068886f103db8fa6ef6aac (diff) |
99video had a missing closing bracket.
While fixing that I noticed
that we use an inconsistent style for function brackets. I chose
foo()
{
}
as it seemed to be the most used one.
Cheers,
Michael
Diffstat (limited to 'pm/sleep.d/99video')
-rwxr-xr-x | pm/sleep.d/99video | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video index e0e48c7..b54a7d1 100755 --- a/pm/sleep.d/99video +++ b/pm/sleep.d/99video @@ -9,7 +9,8 @@ . "${PM_FUNCTIONS}" -reset_brightness() { +reset_brightness() +{ for bl in /sys/class/backlight/* ; do [ -f "$bl/brightness" ] || continue BR="$(cat $bl/brightness)" @@ -30,18 +31,21 @@ else radeon() { echo "radeontool not found" 1>&2; return 1; } fi -save_fbcon(){ +save_fbcon() +{ local con for con in /sys/class/graphics/*/state; do echo 1 >"${con}" done } -resume_fbcon(){ +resume_fbcon() +{ local con for con in /sys/class/graphics/*/state; do echo 0 >"${con}" done +} resume_video() { @@ -72,7 +76,9 @@ resume_video() case "$1" in - suspend) save_fbcon ;; + suspend) + save_fbcon + ;; resume) resume_video ;; |