2
if test `whoami` != "root"
4
echo "You must be super-user or logged in as root to uninstall OSS..."
8
echo "Uninstalling OSS...."
9
echo "Running soundoff...."
12
echo Uninstalling OSS modules
13
cp -f $OSSLIBDIR/etc/installed_drivers /tmp/installed_drivers
14
(cd $OSSLIBDIR;rm -rf etc/installed_drivers etc/legacy_devices logs conf)
16
# Remove the drivers - preremove will copy installed_drivers to /tmp
17
for n in `ls $OSSLIBDIR/modules`
19
if [ -d /etc/conf/pack.d/$n ]; then
20
/etc/conf/bin/idinstall -P oss -d $n > /dev/null 2>&1
21
rm -f $OSSLIBDIR/modules/$n/install.log
25
echo "Removing OSS Files in MANIFEST"
27
for i in `cat /usr/lib/oss/MANIFEST`
29
# echo "Removing file $i"
33
echo "Removing /usr/lib/oss directory"
36
echo "OSS Uninstalled. However you may need reboot the system."