File: xen-utils-V.postinst.vsn-in

package info (click to toggle)
xen 4.11.4%2B107-gef32c7afa2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,364 kB
  • sloc: ansic: 489,966; asm: 7,848; python: 7,435; makefile: 7,344; sh: 6,424; ml: 4,844; perl: 4,223; cpp: 1,829; lex: 708; yacc: 656; pascal: 433
file content (32 lines) | stat: -rw-r--r-- 853 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

set -e

case "$1" in
    configure)
        update-alternatives --remove xen-default /usr/lib/xen-@version@
        if [ -x "/etc/init.d/xen" ]; then
            # Only call the init script when this xen-utils-@version@ package
            # matches the currently running version of Xen. This means, doing
            # in-place updates (e.g. a security update for same version).
            #
            # When installing a xen-utils package for any other Xen version,
            # leave the running system alone.
            if [ "$(/usr/lib/xen-common/bin/xen-version)" = "@version@" ]; then
                invoke-rc.d xen start || exit $?
            fi
        fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
	echo "postinst called with unknown argument \`$1'" >&2
	exit 1
    ;;
esac

#DEBHELPER#

exit 0