summaryrefslogtreecommitdiff
path: root/pm/sleep.d/65alsa
blob: bfe76be8bc4543bd5b9d275f6a2cbc7a0cba57dd (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