diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2009-07-27 06:39:43 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2009-07-27 06:39:43 +0000 |
commit | c66164b230fc33d7a903bbd1da6f803c2cadd0e2 (patch) | |
tree | 5b2c145554a597182448ac64167be76fd904d392 /main/dhcp/dhcp.post-upgrade | |
parent | aad5f530b5a45159e9420d654173345006bde998 (diff) | |
parent | db7bf56b641e8ebb35d6f24ca8bca0b3b9e45c19 (diff) | |
download | aports-c66164b230fc33d7a903bbd1da6f803c2cadd0e2.tar.bz2 aports-c66164b230fc33d7a903bbd1da6f803c2cadd0e2.tar.xz |
Merge branch 'master' of git://dev.alpinelinux.org/aports
Diffstat (limited to 'main/dhcp/dhcp.post-upgrade')
-rw-r--r-- | main/dhcp/dhcp.post-upgrade | 18 |
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 0000000000..b16fea6b4a --- /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 + |