summaryrefslogtreecommitdiffstats
path: root/extra/dhcp/dhcp.post-upgrade
blob: b16fea6b4afb40fb2eaa31021a481a190c2c827f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# we have renamed dhcp to dhcpd. Try cleanup for users

moved=
for i in /etc/runlevel/*/dhcp; do
	if [ -L "$i" ]; then
		mv ${i} ${i}d
		moved=1
	fi
done

if [ -n "$moved" ]; then
	echo " *"
	echo " * NOTICE: the /etc/init.d/dhcp script have been renamed to /etc/init.d/dhcpd"
	echo " *"
fi