~ubuntu-branches/ubuntu/gutsy/dhcp/gutsy-updates

« back to all changes in this revision

Viewing changes to debian/dhcp-client.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Eloy A. Paris
  • Date: 2004-05-26 12:00:58 UTC
  • Revision ID: james.westby@ubuntu.com-20040526120058-w2v4k2cstzp3qvfb
Tags: 2.0pl5-19
Use invoke-rc.d if available when starting the DHCP server.
(Closes: #250878)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
#
 
3
# $Id: dhcp-client.postrm,v 1.3.2.2 2004/05/26 16:45:04 peloy Exp $
 
4
#
 
5
 
 
6
PATH_DHCLIENT_DB=/var/lib/dhcp/dhclient.leases
 
7
PATH_DHCLIENT_DB_DIR=`dirname $PATH_DHCLIENT_DB`
 
8
 
 
9
if [ "$1" = "purge" ]; then
 
10
        rm -f /etc/init.d/dhcp-client
 
11
        update-rc.d dhcp-client remove >/dev/null
 
12
 
 
13
        rm -f $PATH_DHCLIENT_DB
 
14
        rm -f $PATH_DHCLIENT_DB~        # backup file left by the daemon
 
15
        rmdir --ignore-fail-on-non-empty $PATH_DHCLIENT_DB_DIR
 
16
fi
 
17
 
 
18
#DEBHELPER#
 
19
 
 
20
exit 0