This file is indexed.

postinst is in minicom 2.7-1.

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

set -e

[ "$1" = configure ] || exit 0

umask 022
rm -f /etc/minicom/minirc.*.dpkg-tmp
for i in `find /etc/minicom -name 'minirc.*' -type f ! -name '*~'`; do
	if grep -iq '^pr[[:space:]][[:space:]]*port[[:space:]]' $i; then
		sed 's/^pr\([[:space:]][[:space:]]*port[[:space:]]\)/pu\1/i' $i > $i.dpkg-tmp
		mv -fb $i.dpkg-tmp $i
	fi
done

if [ -x /usr/bin/update-menus ]; then
	update-menus
fi

exit 0