diff options
author | Michael Biebl <mbiebl@gmail.com> | 2008-03-07 16:29:09 +0100 |
---|---|---|
committer | Michael Biebl <mbiebl@gmail.com> | 2008-03-07 16:29:09 +0100 |
commit | 593be4adab75f1db65b832106ca78be25b9b2cf2 (patch) | |
tree | e4874af89ff8fe9266a1039eb72c8877375c075d /pm/sleep.d/99video | |
parent | acaf13ae802f72a3c37217c86f80c80db69f852e (diff) |
Fix a quirk parsing in 99video.
- We no longer use $@, so replace $1 with $opt and remove shift
- Remove an unnecessary check.
Diffstat (limited to 'pm/sleep.d/99video')
-rwxr-xr-x | pm/sleep.d/99video | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video index 1dc88bd..c20c7fa 100755 --- a/pm/sleep.d/99video +++ b/pm/sleep.d/99video @@ -10,8 +10,7 @@ . "${PM_FUNCTIONS}" for opt in $PM_CMDLINE; do - [ "${opt#--quirk-}" = "$opt" ] && continue # not one we care about. - case "${1##--quirk-}" in # just quirks, please + case "${opt##--quirk-}" in # just quirks, please dpms-on) QUIRK_DPMS_ON="true" ;; dpms-suspend) QUIRK_DPMS_SUSPEND="true" ;; radeon-off) QUIRK_RADEON_OFF="true" ;; @@ -25,7 +24,6 @@ for opt in $PM_CMDLINE; do none) QUIRK_NONE="true" ;; *) continue ;; esac - shift done |