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

« back to all changes in this revision

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

  • 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
    remove|upgrade|deconfigure)
 
10
      if [  "`dkms status -m $NAME`" ]; then
 
11
         dkms remove -m $NAME -v $VERSION --all
 
12
      fi
 
13
    ;;
 
14
 
 
15
    failed-upgrade)
 
16
    ;;
 
17
 
 
18
    *)
 
19
        echo "prerm called with unknown argument \`$1'" >&2
 
20
        exit 1
 
21
    ;;
 
22
esac
 
23
 
 
24
#DEBHELPER#
 
25
 
 
26
exit 0
 
27
 
 
28