5
# Starts the OSS sound driver
7
# chkconfig: 2345 80 20
8
# description: Open Sound System for Linux (OSS/Linux) is a \
9
# commercial quality sound driver distributed by 4Front Technologies \
10
# (http://www.opensound.com).
14
# Required-Start: $local_fs $remote_fs
17
# Default-Start: 2 3 4 5
19
# Short-Description: Start OSS
22
# Source function library.
23
if test -f /lib/lsb/init-functions
25
. /lib/lsb/init-functions
28
if test -f /etc/rc.d/init.d/functions
30
. /etc/rc.d/init.d/functions
33
# Add oss configuration.
39
# See how we were called.
43
# Check if OSS is already running
44
echo -n 'Starting Open Sound System: '
45
if ! test -f /usr/sbin/soundon
50
if test -f $OSSLIBDIR/starting
52
ls -l $OSSLIBDIR/starting
53
echo Previous start of OSS crashed the system
54
echo Please resolve the situation and remove file
55
echo \"$OSSLIBDIR/starting\". Then start OSS by
60
if ! /usr/sbin/soundon
62
echo Starting OSS failed
64
rm -f $OSSLIBDIR/starting
67
echo -n 'Stopping Open Sound System: '
78
echo "Usage: $0 {start|stop|restart}"