This file is indexed.

postinst is in mt-st 1.1-4ubuntu1.

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
#!/bin/sh -eu

# Automatically added by dh_installinit
if [ -x "/etc/init.d/mt-st" ]; then
	update-rc.d mt-st start 30 S . >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d mt-st start || exit $?
	else
		/etc/init.d/mt-st start || exit $?
	fi
fi
# End automatically added section
# Automatically added by dh_installmodules
if [ "$1" = configure ]; then
	if [ -e "/etc/modprobe.d/mt-st" ]; then
		echo "Preserving user changes to /etc/modprobe.d/mt-st.conf ..."
		if [ -e "/etc/modprobe.d/mt-st.conf" ]; then
			mv -f "/etc/modprobe.d/mt-st.conf" "/etc/modprobe.d/mt-st.conf.dpkg-new"
		fi
		mv -f "/etc/modprobe.d/mt-st" "/etc/modprobe.d/mt-st.conf"
	fi
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
	if [ -e "/etc/udev/mt-st.rules" ]; then
		echo "Preserving user changes to /etc/udev/rules.d/40-mt-st.rules ..."
		if [ -e "/etc/udev/rules.d/40-mt-st.rules" ]; then
			mv -f "/etc/udev/rules.d/40-mt-st.rules" "/etc/udev/rules.d/40-mt-st.rules.dpkg-new"
		fi
		mv -f "/etc/udev/mt-st.rules" "/etc/udev/rules.d/40-mt-st.rules"
	fi
fi
# End automatically added section
# Automatically added by dh_installudev
if [ "$1" = configure ]; then
	if [ -e "/etc/udev/rules.d/50-mt-st.rules" ]; then
		echo "Preserving user changes to /etc/udev/rules.d/40-mt-st.rules ..."
		if [ -e "/etc/udev/rules.d/40-mt-st.rules" ]; then
			mv -f "/etc/udev/rules.d/40-mt-st.rules" "/etc/udev/rules.d/40-mt-st.rules.dpkg-new"
		fi
		mv -f "/etc/udev/rules.d/50-mt-st.rules" "/etc/udev/rules.d/40-mt-st.rules"
	fi
fi
# End automatically added section


if [ "$1" = configure ]; then
    update-alternatives --install /bin/mt mt /bin/mt-st 20 \
      --slave \
	/usr/share/man/man1/mt.1.gz mt.1.gz /usr/share/man/man1/mt-st.1.gz
fi