This file is indexed.

preinst is in cgroup-bin 0.37.1-1ubuntu10.

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
#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/cgconfig" ] && [ ! -L "/etc/init.d/cgconfig" ]; then
		if [ "`md5sum \"/etc/init.d/cgconfig\" | sed -e \"s/ .*//\"`" != \
		     "`dpkg-query -W -f='${Conffiles}' cgroup-bin | sed -n -e \"\\\\' /etc/init.d/cgconfig '{s/ obsolete$//;s/.* //p}\"`" ]
		then
			echo "Obsolete conffile /etc/init.d/cgconfig has been modified by you, renaming to .dpkg-bak"
			mv -f "/etc/init.d/cgconfig" "/etc/init.d/cgconfig.dpkg-bak"
		else
			rm -f "/etc/init.d/cgconfig"
		fi
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/cgred" ] && [ ! -L "/etc/init.d/cgred" ]; then
		if [ "`md5sum \"/etc/init.d/cgred\" | sed -e \"s/ .*//\"`" != \
		     "`dpkg-query -W -f='${Conffiles}' cgroup-bin | sed -n -e \"\\\\' /etc/init.d/cgred '{s/ obsolete$//;s/.* //p}\"`" ]
		then
			echo "Obsolete conffile /etc/init.d/cgred has been modified by you, renaming to .dpkg-bak"
			mv -f "/etc/init.d/cgred" "/etc/init.d/cgred.dpkg-bak"
		else
			rm -f "/etc/init.d/cgred"
		fi
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/libvirt-cgconfig-wait" ] && [ ! -L "/etc/init.d/libvirt-cgconfig-wait" ]; then
		if [ "`md5sum \"/etc/init.d/libvirt-cgconfig-wait\" | sed -e \"s/ .*//\"`" != \
		     "`dpkg-query -W -f='${Conffiles}' cgroup-bin | sed -n -e \"\\\\' /etc/init.d/libvirt-cgconfig-wait '{s/ obsolete$//;s/.* //p}\"`" ]
		then
			echo "Obsolete conffile /etc/init.d/libvirt-cgconfig-wait has been modified by you, renaming to .dpkg-bak"
			mv -f "/etc/init.d/libvirt-cgconfig-wait" "/etc/init.d/libvirt-cgconfig-wait.dpkg-bak"
		else
			rm -f "/etc/init.d/libvirt-cgconfig-wait"
		fi
	fi
fi
# End automatically added section