aports/main/dhcp/dhcp.post-upgrade
Natanael Copa de25f1da2b main/dhcp: fix paths to lease files and configs
also
 * enable paranoia for -user/-group options
 * fix install scripts
 * import new init.d script
 * add missing dirs
 * move dhclient to a separate subpackage

Fixes #110
2009-07-31 06:23:23 +00:00

20 lines
345 B
Bash

#!/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