summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-01 10:26:49 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-03-01 10:56:40 -0600
commit8d5f23f720c121508bd61202cbd75c6d91a07f6d (patch)
tree40cb7f5f7990fd9679a9593a34f2f3b23f57a67e /src
parentdc1a31a76a26ff5258f02b0f533c53974c00e687 (diff)
Moved video-specific option processing to 99video.
Diffstat (limited to 'src')
-rw-r--r--src/pm-action.in21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/pm-action.in b/src/pm-action.in
index 457149a..9012802 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -29,6 +29,8 @@
export PM_FUNCTIONS="@PM-UTILS-LIBDIR@/functions"
. "${PM_FUNCTIONS}"
+# save the command line parameters for the hooks.
+export PM_CMDLINE="$*"
help()
{
echo "${0##*/} [options]"
@@ -49,25 +51,10 @@ if [ -n "$EUID" -a "$EUID" != "0" ]; then
exit 1
fi
-# Get the command line options
+# Save the command line options for the hooks
while [ $# -gt 0 ]
do
- [ "${1##--}" = "$1" ] && break #if this matches, it is not an option!
[ "$1" = "--help" ] && help
- case "${1##--quirk-}" in # just quirks, please
- dpms-on) export QUIRK_DPMS_ON="true" ;;
- dpms-suspend) export QUIRK_DPMS_SUSPEND="true" ;;
- radeon-off) export QUIRK_RADEON_OFF="true" ;;
- reset-brightness) export QUIRK_RESET_BRIGHTNESS="true" ;;
- s3-bios) export QUIRK_S3_BIOS="true" ;;
- s3-mode) export QUIRK_S3_MODE="true" ;;
- vbe-post) export QUIRK_VBE_POST="true" ;;
- vbemode-restore) export QUIRK_VBEMODE_RESTORE="true" ;;
- vbestate-restore) export QUIRK_VBESTATE_RESTORE="true" ;;
- vga-mode3) export QUIRK_VGA_MODE_3="true" ;;
- none) export QUIRK_NONE="true" ;;
- *) continue ;;
- esac
shift
done
@@ -81,6 +68,4 @@ case "$ACTION" in
exit 1 ;;
esac
-export PM_CMDLINE="$@"
-
pm_main "${ACTION}" "${REVERSE}"