~indicator-network-developers/wpasupplicant/07-series.packaging

« back to all changes in this revision

Viewing changes to debian/wpasupplicant.postinst

  • Committer: Kalle Valo
  • Date: 2010-06-17 09:28:19 UTC
  • Revision ID: kalle.valo@canonical.com-20100617092819-p113s6c2132ankcw
Add ubuntu packaging from 0.7.2-0ubuntu1~kvalo1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# This script can be called in the following ways:
 
3
#
 
4
# After the package was installed:
 
5
#       <postinst> configure <old-version>
 
6
#
 
7
#
 
8
# If prerm fails during upgrade or fails on failed upgrade:
 
9
#       <old-postinst> abort-upgrade <new-version>
 
10
#
 
11
# If prerm fails during deconfiguration of a package:
 
12
#       <postinst> abort-deconfigure in-favour <new-package> <version>
 
13
#                  removing <old-package> <version>
 
14
#
 
15
# If prerm fails during replacement due to conflict:
 
16
#       <postinst> abort-remove in-favour <new-package> <version>
 
17
 
 
18
set -e
 
19
 
 
20
case "$1" in
 
21
        configure)
 
22
                # Add the netdev group unless it's already there
 
23
                if ! getent group netdev >/dev/null; then
 
24
                        addgroup --quiet --system netdev || true
 
25
                fi
 
26
                ;;
 
27
        abort-upgrade|abort-deconfigure|abort-remove)
 
28
                ;;
 
29
        *)
 
30
                echo "$0 called with unknown argument \`$1'" 1>&2
 
31
                exit 1
 
32
                ;;
 
33
esac
 
34
 
 
35
#DEBHELPER#
 
36
exit 0