diff options
author | adrianp <adrianp@pkgsrc.org> | 2009-01-04 00:56:32 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2009-01-04 00:56:32 +0000 |
commit | bc8b715885603950b033f5cabe804637e9fa1833 (patch) | |
tree | e52b96a701c6a79bb6cd6798c6f8fd6f449b3306 /net/isc-dhcrelay4/files | |
parent | 2c4853a7bc2354dd0a8e37f21b60af7ac72c3b74 (diff) | |
download | pkgsrc-bc8b715885603950b033f5cabe804637e9fa1833.tar.gz |
Update to 4.1.0
ISC DHCP 4.1.x will have several new DHCPv6 features that were not in DHCP 4.0.x. These new features include:
* Support for the rapid-commit option on the client side
* Prefix Delegation support
* IA_TA address support
* A basic DHCPv6 relay agent
* basic DHCPv6 Leasequery support
Diffstat (limited to 'net/isc-dhcrelay4/files')
-rwxr-xr-x | net/isc-dhcrelay4/files/isc_dhcrelay.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net/isc-dhcrelay4/files/isc_dhcrelay.sh b/net/isc-dhcrelay4/files/isc_dhcrelay.sh new file mode 100755 index 00000000000..136e1e43d5e --- /dev/null +++ b/net/isc-dhcrelay4/files/isc_dhcrelay.sh @@ -0,0 +1,33 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: isc_dhcrelay.sh,v 1.1 2009/01/04 01:00:09 adrianp Exp $ +# + +# PROVIDE: dhcrelay +# REQUIRE: DAEMON +# BEFORE: NETWORKING +# +# Note that there no syslog logging of dhclient messages at boot because +# dhclient needs to start before services that syslog depends upon do. +# + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="isc_dhcrelay" +rcvar="${name}" +command="@PREFIX@/sbin/dhcrelay" +pidfile="@VARBASE@/run/isc-dhcp/isc-dhcrelay.pid" +start_precmd="isc_dhcrelay_precmd" + +isc_dhcrelay_precmd() +{ + if [ ! -d @VARBASE@/run/isc-dhcp ]; then + @MKDIR@ @VARBASE@/run/isc-dhcp + @CHMOD@ 0770 @VARBASE@/run/isc-dhcp + fi +} + +load_rc_config $rcvar +run_rc_command "$1" |