isc-dhcp: update to 4.3.3. Migrate from oldplackages

Signed-off-by: Antony Antony <antony@phenome.org>
This commit is contained in:
Antony Antony
2016-03-25 13:17:46 +01:00
parent 4457604f3b
commit 7f594309bf
15 changed files with 964 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/bin/sh /etc/rc.common
START=65
lease_file=/var/dhcpd6.leases
config_file=/etc/dhcpd6.conf
pid_file=/var/run/dhcpd6.pid
start() {
if [ ! -e $lease_file ]; then
touch $lease_file
fi
/usr/sbin/dhcpd -q -6 -cf $config_file -lf $lease_file -pf $pid_file $dhcp_ifs
if [ $? -ne 0 ]; then
return 1
fi
}
stop() {
if [ ! -e $pid_file ]; then
return 1
fi
kill -9 `cat $pid_file`
if [ $? -ne 0 ]; then
return 1
fi
rm $pid_file
}