]>
git.proxmox.com Git - pve-kernel.git/blob - headers-postinst.in
3 # Abort if any command returns an error value
9 # There are three sub-cases:
10 if test "${2+set}" != set; then
11 # We're being installed by an ancient dpkg which doesn't remember
12 # which version was most recently configured, or even whether
13 # there is a most recently configured version.
16 elif test -z "$2" -o "$2" = "<unknown>"; then
17 # The package has not ever been configured on this system, or was
18 # purged since it was last configured.
22 # Version $2 is the most recently configured version of this
28 # Back out of an attempt to upgrade this package FROM THIS VERSION
29 # to version $2. Undo the effects of "prerm upgrade $2".
34 if test "$2" != in-favour
; then
35 echo "$0: undocumented call to \`postinst $*'" 1>&2
38 # Back out of an attempt to remove this package, which was due to
39 # a conflict with package $3 (version $4). Undo the effects of
40 # "prerm remove in-favour $3 $4".
45 if test "$2" != in-favour
-o "$5" != removing
; then
46 echo "$0: undocumented call to \`postinst $*'" 1>&2
49 # Back out of an attempt to deconfigure this package, which was
50 # due to package $6 (version $7) which we depend on being removed
51 # to make way for package $3 (version $4). Undo the effects of
52 # "prerm deconfigure in-favour $3 $4 removing $6 $7".
56 *) echo "$0: didn't understand being called with \`$1'" 1>&2