File: postinst

package info (click to toggle)
minicom 2.1-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,712 kB
  • ctags: 1,667
  • sloc: ansic: 18,440; sh: 3,081; makefile: 379; yacc: 318
file content (20 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (8)
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