blob: cacd5fa81d20e3fd5362a7b3c30dbeb1bc74af3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
#
# /etc/init.d/alsa-utils
#
case "$1" in
start|restart|force-reload)
if [ ! -d /dev/snd ]; then
echo "sound not supported, skipping mixer state"
exit 0
fi
echo -n "restoring mixer state..."
if [ -f /etc/asound.state ]; then
/usr/sbin/alsactl restore -f /etc/asound.state
echo "done"
else
echo "no /etc/asound.state, aborting"
fi
;;
stop)
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
|