|
Starting OSS sound at Boot in Slack 8.1 or BSD
It is a long story as to why but I basically need to use OSS sound drivers so I don't get a conflict with my ECS laptop's pctel modem. I would like to automate the loading of the sound drivers before starting KDE so the arts sound server will find them. If I use run level 3 I can log in as user and the run "su -c soundon" to start OSS sound and then "startx" to bringup xwindows and kde. The modules can be turned off with "soundoff" or by shutting down. OSS drivers will autoload in a system the uses sysvinit via installation option but this does not work with Slackware's BSD style of init scripts
I would like to use run level 4 and have "soundon" (/usr/lib/oss/soundon) start before kdm
I am not sure were the best place (rc.S vs rc.4 vs rc.sysvinit vs rc.modules) is to try to add a script to do this. I tried to add
# Tell viewer that OSS sound is starting
echo "Starting OSS Sound"
if [ -x /usr/lib/oss/soundon ]; then
exec /usr/lib/oss/soundon
but it hung up ( was I missing an fi and are these nested?)
Any advice appreciated
|