File: postrm

package info (click to toggle)
minicom 2.7-1.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,784 kB
  • ctags: 1,428
  • sloc: ansic: 14,390; sh: 4,994; makefile: 127
file content (20 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

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

if [ "$1" = purge ]; then
	if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_purge
	fi
	rm -f /etc/minicom.users* /etc/minicom/minirc.*
	if ! rmdir /etc/minicom 2> /dev/null; then
		echo "Cannot remove /etc/minicom, please do it manually."
	fi
fi

exit 0