diff options
author | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
---|---|---|
committer | Doug Barton <dougb@FreeBSD.org> | 2012-08-05 23:19:36 +0000 |
commit | 9aac569eaa031e27191a3f4165b389a17f467ad2 (patch) | |
tree | 1ed78841e1757014ccc09581c61c3683992d3f77 /net/dhcp6/files/dhcp6relay.in | |
parent | 47b836bfe5c397deb173a868525d4cba22cbb5fa (diff) |
Notes
Diffstat (limited to 'net/dhcp6/files/dhcp6relay.in')
-rw-r--r-- | net/dhcp6/files/dhcp6relay.in | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net/dhcp6/files/dhcp6relay.in b/net/dhcp6/files/dhcp6relay.in new file mode 100644 index 000000000000..849f825ba71d --- /dev/null +++ b/net/dhcp6/files/dhcp6relay.in @@ -0,0 +1,45 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: dhcp6relay +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to +# /etc/rc.conf.d/dhcp6relay /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# dhcp6relay_enable (bool): Set to NO by default. +# Set it to YES to enable dhcp6relay. +# dhcp6relay_interfaces (NIC list): Not defined by default. +# Set it to the network interface(s) where dhcp6relay should work +# on. +# dhcp6relay_flags (additional arguments): Not defined by default. +# + +. /etc/rc.subr + +name="dhcp6relay" +rcvar=dhcp6relay_enable + +command=%%PREFIX%%/sbin/${name} +start_precmd="${name}_precmd" + +load_rc_config $name + +: ${dhcp6relay_enable="NO"} + +command_args="${dhcp6relay_interfaces}" + +dhcp6relay_precmd() +{ + if [ -z "${dhcp6relay_interfaces}" ]; then + warn "dhcp6relay_interfaces is not set." + return 1 + fi +} + +run_rc_command "$1" |