summaryrefslogtreecommitdiff
path: root/pm/sleep.d/01grub
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-07-01 21:09:09 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-07-01 21:09:09 -0500
commitc7e053a05844af2789bb7fab3bf81b0c6d1abcb6 (patch)
tree7d335a21976646b74fe9f1d6045669e15f7be2cc /pm/sleep.d/01grub
parentd3223855cbb91c01776aca2d4196b79f73afd7ae (diff)
Add support for massing $METHOD as the second parameter to hooks
This makes it easier for hooks that care about suspend_hybrid to handle it correctly without having to force all the other hooks to care about it. Also updated 01grub to conform to the new plan.
Diffstat (limited to 'pm/sleep.d/01grub')
-rw-r--r--pm/sleep.d/01grub5
1 files changed, 3 insertions, 2 deletions
diff --git a/pm/sleep.d/01grub b/pm/sleep.d/01grub
index 096ffa7..db1d53b 100644
--- a/pm/sleep.d/01grub
+++ b/pm/sleep.d/01grub
@@ -4,6 +4,7 @@
default_resume_kernel()
{
+ [ "$1" = "suspend" ] && return $NA
case $(uname -m) in
i?86|x86_64|athlon)
;;
@@ -25,8 +26,8 @@ default_resume_kernel()
}
case "$1" in
- hibernate|suspend_hybrid)
- default_resume_kernel
+ hibernate|suspend)
+ default_resume_kernel $2
;;
*) exit $NA
;;