This file is indexed.

postinst is in xen-utils-common 4.6.0-1ubuntu4.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

set -e

case "$1" in
configure)
	install -d -m 2750 -g adm /var/log/xen
	;;

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

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

dpkg-maintscript-helper mv_conffile /etc/init.d/xend /etc/init.d/xen 4.1.2-4~ -- "$@"

# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/xenstored" ]; then
		update-rc.d xenstored defaults 20 22 >/dev/null
	fi
	if [ -x "/etc/init.d/xenstored" ] || [ -e "/etc/init/xenstored.conf" ]; then
		invoke-rc.d xenstored start || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/xen" ]; then
		update-rc.d xen defaults 21 21 >/dev/null
	fi
	if [ -x "/etc/init.d/xen" ] || [ -e "/etc/init/xen.conf" ]; then
		invoke-rc.d xen start || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/xendomains" ]; then
		update-rc.d xendomains defaults 22 20 >/dev/null || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_ucf
if [ "$1" = "configure" ]; then
	ucf "/usr/share/xen-utils-common/default.xen" "/etc/default/xen"
	ucfr xen-utils-common "/etc/default/xen"
fi
# End automatically added section


exit 0