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

. "${PM_FUNCTIONS}"

command_exists alsactl || exit $NA

case "$1" in
	hibernate|suspend)
		alsactl store 0 >/dev/null 2>&1
		;;
	thaw|resume) 
		alsactl restore 0 >/dev/null 2>&1
		;;
	*) exit $NA
		;;
esac