5
echo "Setting up Open Sound System....please wait"
7
#first remove the SCO ich driver from the system
8
/etc/conf/bin/idinstall -d ich > /dev/null 2>&1
10
#Remove oprhaned files left from earlier OSS installations
11
rm -f /dev/sequencer /dev/music
12
rm -f /dev/*_mixer[0-9]*
13
rm -f /dev/*_midi[0-9]*
14
rm -f /dev/*_dsp[0-9]*
18
rm -f /etc/rc3.d/S99oss
20
# Unload previous modules
21
for n in `ls $OSSLIBDIR/modules|grep -v osscore`
23
modadmin -U $n > /dev/null 2>&1
26
modadmin -U osscore > /dev/null 2>&1
28
# Remove previous OSS startup files
29
rm -f /etc/rc3.d/S99oss /etc/init.d/oss
33
rm -f $OSSLIBDIR/modules/*/install.log
35
cd $OSSLIBDIR/modules/osscore
37
cd $OSSLIBDIR/build && sh install.sh
39
if test ! -f $OSSLIBDIR/etc/userdefs
41
echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
46
echo "Adding OSS startup scripts to /etc/rc2.d and /etc/init.d"
47
rm -f /etc/rc2.d/S89oss /etc/init.d/oss
49
cp $OSSLIBDIR/etc/S89oss /etc/init.d/oss
50
chmod 744 /etc/init.d/oss
52
ln -s /etc/init.d/oss /etc/rc2.d/S89oss
57
echo Thank you for installing Open Sound System
58
echo You can run the osstest command to test audio playback in your system.
60
echo It may be necessary to reboot the system before all devices get properly
61
echo detected by the system.