added ikev2/dhcp-dynamic scenario

This commit is contained in:
Andreas Steffen
2010-04-23 11:52:37 +02:00
parent 19d49af539
commit bcd20cc987
17 changed files with 311 additions and 0 deletions
@@ -0,0 +1,24 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
opts="start stop"
depend() {
need net
need logger
}
start() {
ebegin "Starting DHCP server"
start-stop-daemon --start --quiet --exec /usr/sbin/dhcpd
eend $?
}
stop() {
ebegin "Stopping DHCP server"
start-stop-daemon --stop --quiet --pidfile /var/run/dhcpd.pid
rm -f /var/state/dhcp/dhcpd.leases
touch /var/state/dhcp/dhcpd.leases
eend $?
}