summaryrefslogtreecommitdiff
path: root/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S50alsa-utils
blob: e92e5d8aeb3790fc66f8663e0e4f62270e800fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

PROGRAM=/usr/sbin/alsactl

# Exit silently if alsa-utils isn't installed
[ -x ${PROGRAM} ] || exit 0

echo -n "Restoring mixer state: "
if [ ! -f /etc/asound.state ]; then
	echo "missing"
	exit 1
fi

if ${PROGRAM} restore; then
	echo "done"
else
	echo "failed"
	exit 1
fi