postrm is in isc-dhcp-client 4.2.2.dfsg.1-5+deb70u8.
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 | #!/bin/sh -e
#
#
if [ "$1" = "purge" ]; then
# Remove lease database
rm -f /var/lib/dhcp/dhclient.leases*
# Try to remove directory
if [ -d /var/lib/dhcp ]; then
rmdir --ignore-fail-on-non-empty /var/lib/dhcp/
fi
rmdir --ignore-fail-on-non-empty /etc/dhcp
fi
|