File: postrm

package info (click to toggle)
dhcpcd 0.70-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 276 kB
  • ctags: 270
  • sloc: ansic: 2,300; sh: 391; makefile: 93
file content (18 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

if [ "$1" = "purge" ]
then
	update-rc.d dhcpc remove >/dev/null
	if [ -f /etc/dhcpc/resolv.conf.original ]; then
		rm /etc/resolv.conf
		mv /etc/dhcpc/resolv.conf.original /etc/resolv.conf
	fi
	if [ -f /etc/dhcpc/ntp.conf.original ]; then
		rm /etc/ntp.conf
		mv /etc/dhcpc/ntp.conf.original /etc/ntp.conf
	fi
	rm -r /etc/dhcpc
	rm -f /etc/dhcpd.leases~
fi

#DEBHELPER#