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

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

moved=
for i in /etc/runlevel/*/dhcp; do
	if [ -L "$i" ]; then
                rm $i
		ln -s /etc/init.d/clamsmtpd ${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