how to start the commercial OSS driver automatically
I got a script from 4front that is supposed to start the sound driver at boot time. I named it oss and put it in /etc/init.d . Then I made a symlink to it in /etc/rc3.d/S99oss . But it doesn't start the driver. Yes, the script is executable and has #!/bin/sh in the first line.
I also tried a script that just has the lines
#!/bin/sh
soundon
in it, because soundon is all it has to execute. It doesn't work either.
Below you find the script I got from 4front. Their technical support doesn't know why it doesn't work. But it's specially written for Debian, it's not the one they ship with their driver.
I put export OSSLIBDIR="/usr/local/lib/oss" (that's where oss and therefore soundon are) in /etc/profile . Is that correct? It is listed when I type export.
I suspect I have to do something else than just put the script and the link in place. But what? Or is there a mistake in the script?
Robert
#!/bin/sh
.. /etc/oss.conf
##########
#
# The first argument tells what to do.
##########
state=$1
case $state in
'start')
if test -f $OSSLIBDIR/soundon
then
(sleep 45;$OSSLIBDIR/soundon)&
exit 0
else
exit 1
fi
;;
'stop')
if test -f $OSSLIBDIR/soundoff
then
$OSSLIBDIR/soundoff
exit 0
else
exit 1
fi
;;
esac
exit 1
_______________________________________________________________________________
Alles unter einem Dach: Informationen, Fun, E-Mails. Bei WEB.DE: http://web.de
Die große Welt der Kommunikation: E-Mail, Fax, SMS, WAP: http://freemail.web.de
Reply to: