~townsend/+junk/dell-laptop-natty-dkms-framework

« back to all changes in this revision

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

  • Committer: Christopher Townsend
  • Date: 2011-05-19 15:18:29 UTC
  • Revision ID: christopher.townsend@canonical.com-20110519151829-ajft7sdgfw7oiu5w
Initial revision with no modified files.

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