summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-03-15 18:04:11 -0500
committerVictor Lowther <victor.lowther@gmail.com>2008-03-15 18:04:11 -0500
commit1de164bdd3915e7c93329a9df77064ed7b402ea1 (patch)
tree6cde124c4c2b2dd546276ba302cf200fdb88808f /src
parent40cf5324abdfa5eac08cba836ca84097849ad188 (diff)
Mostly seperated vt switching logic from the suspend_lock logic.
This should fix the breakage implemented by moving the locking.
Diffstat (limited to 'src')
-rw-r--r--src/pm-action.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pm-action.in b/src/pm-action.in
index c1a0b35..3971d44 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -48,6 +48,7 @@ take_suspend_lock || exit 1
# make sure we release the lock no matter how we exit
trap remove_suspend_lock 0
+VT=$(fgconsole)
# Save the command line options for the hooks
while [ $# -gt 0 ]
@@ -80,3 +81,4 @@ command_exists "do_$ACTION" && [ ! -e "$INHIBIT" ] && { sync; "do_$ACTION"; }
# run the sleep hooks in reverse with the wakeup action
run_hooks sleep "$REVERSE" reverse
+