]> git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/init.d/alsa
fe7077ad5e22d3bf74c92a6f6424d329cbc9e57c
[ipfire-2.x.git] / src / initscripts / init.d / alsa
1 #!/bin/sh
2 # Begin $rc_base/init.d/alsa
3
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
6 # ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org
7 # Stores mixer settings in the default location: /etc/asound.state
8
9 . /etc/sysconfig/rc
10 . $rc_functions
11
12 case "$1" in
13 stop)
14 boot_mesg "Stopping ALSA... Saving volumes..."
15 loadproc /usr/sbin/alsactl store
16 ;;
17
18 *)
19 echo "Usage: $0 stop"
20 exit 1
21 ;;
22 esac
23
24 # End $rc_base/init.d/alsa