summaryrefslogtreecommitdiff
path: root/pm/sleep.d/00clear
blob: eca811cfe15d548f6d12b99f9e7f37f668bb6a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. "${PM_FUNCTIONS}"

case "$1" in
	hibernate|suspend)
		fgconsole |savestate console
		chvt 63
		;;
	thaw|resume) 
		state_exists console || exit 1
		chvt $(restorestate console) 
		deallocvt 63
		;;
	*)
		;;
esac