~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

« back to all changes in this revision

Viewing changes to setup/SCO_SV/preremove

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-16 20:37:48 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110616203748-jbrxik6ql33z54co
Tags: 4.2-build2004-1ubuntu1
* Merge from Debian unstable.
  - Supports our current kernel (LP: #746048)
  Remaining changes:
  - debian/oss4-dkms.dkms.in: s/source/build/ in Kernel headers paths.
* ld-as-needed.patch: Re-order CC arguments to enable building with ld
  --as-needed (LP: #770972)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
. /etc/oss.conf
 
3
 
 
4
/usr/sbin/soundoff
 
5
cp -f $OSSLIBDIR/etc/installed_drivers /tmp/installed_drivers
 
6
(cd $OSSLIBDIR;rm -rf etc/installed_drivers etc/legacy_devices logs conf)
 
7
 
 
8
# Remove the drivers - preremove will copy installed_drivers to /tmp
 
9
for n in `ls $OSSLIBDIR/modules`
 
10
do
 
11
 if [ -d /etc/conf/pack.d/$n ]; then
 
12
    /etc/conf/bin/idinstall -P oss -d $n > /dev/null 2>&1
 
13
    rm -f $OSSLIBDIR/modules/$n/install.log
 
14
 fi
 
15
done