File: postrm

package info (click to toggle)
xcdroast 0.96e-3
  • links: PTS
  • area: main
  • in suites: potato, slink
  • size: 4,100 kB
  • ctags: 5,698
  • sloc: ansic: 31,913; tcl: 10,036; sh: 753; makefile: 397
file content (19 lines) | stat: -rw-r--r-- 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

if [ "$1" = "remove"  -o "$1" = "purge" ]; then
	if [ -x /usr/bin/update-menus ]; then
		update-menus
	fi

	if [ -x /usr/sbin/suidregister -a -e /etc/suid.conf ]; then
		suidunregister -s xcdroast /usr/bin/xcdroast
	fi

	if [ -d /etc/xcdroast ]; then
		if [ -f /etc/xcdroast/xcdroast.conf ]; then
			rm -f /etc/xcdroast/xcdroast.conf
		fi
		rmdir /etc/xcdroast
	fi
fi