summaryrefslogtreecommitdiffstats
path: root/main/dhcp/dhcp.post-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'main/dhcp/dhcp.post-upgrade')
-rw-r--r--main/dhcp/dhcp.post-upgrade18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/dhcp/dhcp.post-upgrade b/main/dhcp/dhcp.post-upgrade
new file mode 100644
index 00000000..b16fea6b
--- /dev/null
+++ b/main/dhcp/dhcp.post-upgrade
@@ -0,0 +1,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
+