summaryrefslogtreecommitdiff
path: root/setup/SCO_SV/combpkg/postinstall
diff options
context:
space:
mode:
Diffstat (limited to 'setup/SCO_SV/combpkg/postinstall')
-rw-r--r--setup/SCO_SV/combpkg/postinstall82
1 files changed, 82 insertions, 0 deletions
diff --git a/setup/SCO_SV/combpkg/postinstall b/setup/SCO_SV/combpkg/postinstall
new file mode 100644
index 0000000..c49de2e
--- /dev/null
+++ b/setup/SCO_SV/combpkg/postinstall
@@ -0,0 +1,82 @@
+#!/bin/sh
+
+# Place the uw/osr6 specific files into place
+if [ -n "`echo $CLASSES | grep osr6`" ]; then
+ PRFX="osr6"
+else
+ PRFX="uw7"
+fi
+while read file
+do
+ removef oss ${file}.${PRFX}
+ mv ${file}.${PRFX} ${file}
+ installf -c none oss ${file} f
+done <<!EOF
+ /usr/bin/ossxmix
+!EOF
+removef -f oss
+installf -f oss
+
+. /etc/oss.conf
+
+echo "Setting up Open Sound System....please wait"
+
+#first remove the SCO ich driver from the system
+/etc/conf/bin/idinstall -d ich > /dev/null 2>&1
+
+#Remove orphaned files left from earlier OSS installations
+rm -f /dev/sequencer /dev/music
+rm -f /dev/*_mixer[0-9]*
+rm -f /dev/*_midi[0-9]*
+rm -f /dev/*_dsp[0-9]*
+rm -f /dev/dsp*
+rm -f /dev/mixer*
+rm -f /dev/midi*
+rm -f /etc/rc3.d/S99oss
+
+# Unload previous modules
+for n in `ls $OSSLIBDIR/modules|grep -v osscore`
+do
+ modadmin -U $n > /dev/null 2>&1
+done
+
+modadmin -U osscore > /dev/null 2>&1
+
+# Remove previous OSS startup files
+rm -f /etc/rc3.d/S99oss /etc/init.d/oss
+
+# (re)install osscore
+
+rm -f $OSSLIBDIR/modules/*/install.log
+
+cd $OSSLIBDIR/modules/osscore
+
+cd $OSSLIBDIR/build && sh install.sh
+
+if test ! -f $OSSLIBDIR/etc/userdefs
+then
+ echo "autosave_mixer yes" > $OSSLIBDIR/etc/userdefs
+fi
+
+/usr/sbin/soundon
+
+installf -f oss
+
+echo "Adding OSS startup scripts to /etc/rc2.d and /etc/init.d"
+rm -f /etc/rc2.d/S89oss /etc/init.d/oss
+
+cp $OSSLIBDIR/etc/S89oss /etc/init.d/oss
+chmod 744 /etc/init.d/oss
+
+ln -s /etc/init.d/oss /etc/rc2.d/S89oss
+echo ""
+echo ""
+echo ""
+echo ""
+echo Thank you for installing Open Sound System
+echo You can run the osstest command to test audio playback in your system.
+echo
+echo It may be necessary to reboot the system before all devices get properly
+echo detected by the system.
+
+exit 0