Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | # | |
3 | # /etc/rc.d/alsa: store/restore ALSA mixer levels | |
4 | # | |
5 | ||
6 | # location of the alsactl executable | |
7 | ALSACTL=/usr/sbin/alsactl | |
8 | ||
9 | case $1 in | |
10 | start) | |
11 | $ALSACTL restore | |
12 | ;; | |
13 | stop) | |
14 | $ALSACTL store | |
15 | ;; | |
16 | restart) | |
17 | $0 stop | |
18 | sleep 2 | |
19 | $0 start | |
20 | ;; | |
21 | *) | |
22 | echo "Usage: $0 [start|stop|restart]" | |
23 | ;; | |
24 | esac | |
25 | ||
26 | # End of file |