This file is indexed.

preinst is in ircd-ircu 2.10.12.10.dfsg1-1.1ubuntu1.

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
#
# preinst for ircd-ircu: check for hangover of old ircd package
#
#

set -e

case "$1" in

	install)

	if [ -f "/etc/init.d/ircd" ]; then
		echo "init-script of old ircd found, stopping it."
		invoke-rc.d ircd stop
	fi

	if [ -d "/etc/ircd" ]; then
		echo -n "hangovers of old ircd found, saving them in /etc/ircd/bak: "
		if [ ! -d "/etc/ircd/bak" ]; then
			mkdir /etc/ircd/bak/
		fi
		for a in `find /etc/ircd -mindepth 1 -not -name bak`; do cp -r "$a" "/etc/ircd/bak/`echo \"$a\" | sed 's/\/etc\/ircd//g'`.bak"; done
		echo "done."
	fi

	;;

	abort-upgrade|upgrade)
	
	;;

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



exit 0