File: hal.postrm

package info (click to toggle)
hal 0.5.14-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,212 kB
  • ctags: 4,854
  • sloc: ansic: 60,732; xml: 16,387; sh: 11,366; makefile: 1,111; cpp: 292
file content (27 lines) | stat: -rw-r--r-- 627 bytes parent folder | download
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
#!/bin/sh

set -e

#DEBHELPER#

if [ "$1" = "purge" ] ; then
	# Tell dbus to reload it's configuration files only, when we purge the
	# package, i.e. when we remove its conffiles in /etc/dbus-1/system.d/
  	if [ -x /etc/init.d/dbus ]; then
		invoke-rc.d dbus force-reload || true
  	fi

	if [ -x "$(command -v deluser)" ]; then
        	deluser --quiet --system haldaemon > /dev/null || true
	else
		echo >&2 "Not removing haldaemon system account because deluser command was not found"
	fi

	rm -f /var/cache/hald/fdi-cache
	rmdir /var/cache/hald || true

	rm -f /var/run/hald/acl-list
	rmdir /var/run/hald || true
fi

exit 0