summaryrefslogtreecommitdiff
path: root/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S50alsa-utils
blob: 0b01f1a6d5b1ef093cc7a91483cc5492d11e5246 (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 > /dev/null 2> /dev/null; then
	echo " done"
else
	echo " failed"
	exit 1
fi