/[pkg-wpa]/wpasupplicant/trunk/debian/wpasupplicant.postinst
ViewVC logotype

Contents of /wpasupplicant/trunk/debian/wpasupplicant.postinst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1605 - (show annotations) (download)
Fri Sep 9 21:41:15 2011 UTC (20 months, 2 weeks ago) by kelmo-guest
File size: 1178 byte(s)
Test for pid file existence before attempting to move it.
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 # Migrate existing sendsigs omission pid files to /run
28 if [ -d /run/sendsigs.omit.d/ ] && \
29 [ -d /lib/init/rw/sendsigs.omit.d/ ]; then
30 for f in /lib/init/rw/sendsigs.omit.d/wpasupplicant.*.pid
31 do
32 if [ -f "$f" ]; then
33 mv "$f" /run/sendsigs.omit.d/
34 fi
35 done
36 fi
37 ;;
38 abort-upgrade|abort-deconfigure|abort-remove)
39 ;;
40 *)
41 echo "$0 called with unknown argument \`$1'" 1>&2
42 exit 1
43 ;;
44 esac
45
46 #DEBHELPER#
47 exit 0

  ViewVC Help
Powered by ViewVC 1.1.5