Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv18421/scripts/scripts
Added Files:
alsa-driver
Log Message:
alsa fixes
--- NEW FILE: alsa-driver ---
#!/bin/bash
### BEGIN INIT INFO
# Provides: alsa-driver
# Required-Start: $basebuildtools $libs linux
# Required-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 6
# Description: alsa sound support, 1st step
### END INIT INFO
# settings
source /etc/sysconfig/config
# parameters
NAME="alsa driver"
CONFIGNAME=ALSA-DRIVER
DAEMON=
PARAMETER=
# source function library
source /etc/init.d/functions
eval START=\$START_$CONFIGNAME
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START=yes
test "$START" = "yes" || exit 0
case "$1" in
start)
echo -n "Starting $NAME: "
modprobe snd-via82xx
modprobe snd-pcm-oss
modprobe snd-mixer-oss
;;
stop)
echo -n "Shutting down $NAME: "
rmmod snd-pcm-oss
rmmod snd-mixer-oss
rmmod snd-via82xx
rmmod snd-pcm
rmmod snd-ac97-codec
rmmod snd-timer
rmmod snd-mpu401-uart
rmmod snd-rawmidi
rmmod snd-seq-device
rmmod snd
rmmod soundcore
rmmod snd-page-alloc
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
|