#!/bin/sh set -e if [ "$1" = "purge" ]; then # Remove old lease database rm -f /var/lib/dhcp3/dhclient.*leases* # Try to remove old directory if [ -d /var/lib/dhcp3 ]; then rmdir --ignore-fail-on-non-empty /var/lib/dhcp3/ fi fi