kumquat-buildroot/target/device/Atmel/atstk1002/target_skeleton/etc/init.d/S50alsa-utils

20 lines
310 B
Plaintext
Raw Normal View History

2007-07-29 09:15:35 +02:00
#!/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