#!/bin/sh if test -f /etc/oss.conf then . /etc/oss.conf else echo "Error: /etc/oss.conf not found - don't know where OSS is installed!" exit -1 fi $OSSLIBDIR/bin/soundoff rm -f /usr/local/bin/soundon rm -f /usr/local/bin/soundoff rm -f /usr/local/bin/soundconf rm -f /usr/lib/libOSSlib.so /usr/lib64/libOSSlib.so rm -f /etc/drums.sb /etc/drums.o3 /etc/std.sb /etc/std.o3 if test "`/sbin/chkconfig --help 2>&1 |grep level` " != " " then /sbin/chkconfig --level 2345 oss off >> /dev/null 2>&1 else /sbin/chkconfig --set oss off >> /dev/null 2>&1 fi /sbin/chkconfig --del oss >> /dev/null 2>&1 rm -f /etc/rc.d/init.d/oss /etc/rc*.d/S99oss rm -rf $OSSLIBDIR rm -f /dev/dsp_ac3 /dev/dsp_multich rm -f /dev/dsp ln -s /dev/dsp0 /dev/dsp for n in /etc/modules.conf /etc/modprobe.conf /etc/modprobe.conf.dist /etc/hotplug/blacklist do if test -f $n then rm -f /tmp/uninst.tmp cp $n /tmp/uninst.tmp grep -v ADDED_BY_OSS /tmp/uninst.tmp|sed 's/^# \(.*\) #\tREMOVED_BY_OSS/\1/' > $n rm -f /tmp/uninst.tmp fi done if test -f /lib/modules/`uname -r`/sound-preoss.tar.bz2 then (cd /lib/modules/`uname -r`;tar xfj /lib/modules/`uname -r`/sound-preoss.tar.bz2) fi rm -f /usr/lib/libasound.so.2 /lib/libasound.so.2 >> /dev/null 2>&1 ldconfig -v >> /dev/null 2>&1