~ubuntu-branches/debian/stretch/dkms/stretch

« back to all changes in this revision

Viewing changes to template-dkms-mkdeb/debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Matt Domsch
  • Date: 2007-09-17 09:58:46 UTC
  • Revision ID: james.westby@ubuntu.com-20070917095846-wgz307t76r6pyfn8
Tags: upstream-2.0.17.4
ImportĀ upstreamĀ versionĀ 2.0.17.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
NAME=MODULE_NAME
 
4
VERSION=MODULE_VERSION
 
5
 
 
6
set -e
 
7
 
 
8
case "$1" in
 
9
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
10
                moddir="/lib/modules/`uname -r`/kernel/"
 
11
      depmod
 
12
      if [ -d "/usr/src/$NAME-$VERSION" ]; then
 
13
         echo "Removing old module source..."
 
14
         rm -rf "/usr/src/$NAME-$VERSION"
 
15
      fi
 
16
    ;;
 
17
 
 
18
    *)
 
19
        echo "postrm called with unknown argument \`$1'" >&2
 
20
        exit 1
 
21
    ;;
 
22
esac
 
23
 
 
24
#DEBHELPER#
 
25
 
 
26
exit 0
 
27