summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-01 10:08:05 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-03-01 10:56:40 -0600
commitdc1a31a76a26ff5258f02b0f533c53974c00e687 (patch)
tree96a232e41039060bc50f400be0411a9947d2d343 /src
parent3c2766986130026a47badff7edb740709c0a5b1e (diff)
first pass at using run-hooks to get help info.
The output from this will be ugly, if it even works.
Diffstat (limited to 'src')
-rw-r--r--src/pm-action.in23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/pm-action.in b/src/pm-action.in
index 3fe476b..457149a 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -26,25 +26,21 @@
# The rule here? Simplicity.
+export PM_FUNCTIONS="@PM-UTILS-LIBDIR@/functions"
+. "${PM_FUNCTIONS}"
+
help()
{
echo "${0##*/} [options]"
echo
echo "Options can change how the supend or hibernate is done."
+ echo "pm-utils by itself does not handle any options except --help."
echo
- echo "Possible actions are:"
+ echo "Instead, any options you supply are passed on to the helper"
+ echo "progams that handle the details of power management."
echo
- echo " --quirk-dpms-on"
- echo " --quirk-dpms-suspend"
- echo " --quirk-radeon-off"
- echo " --quirk-reset-brightness"
- echo " --quirk-s3-bios"
- echo " --quirk-s3-mode"
- echo " --quirk-vbe-post"
- echo " --quirk-vbemode-restore"
- echo " --quirk-vbestate-restore"
- echo " --quirk-vga-mode3"
- echo " --quirk-none"
+ echo "Those options are:"
+ run_hooks sleep help
exit 0
}
@@ -75,9 +71,6 @@ do
shift
done
-export PM_FUNCTIONS="@PM-UTILS-LIBDIR@/functions"
-. "${PM_FUNCTIONS}"
-
ACTION="$(echo ${0##*pm-} |tr - _)"
case "$ACTION" in