freebsd-ports/net/dhcp6/files/dhcp6relay.sh
Doug Barton c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00

35 lines
752 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dhcp6relay
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move dhcp6relay.sh to /etc/rc.d/dhcp6relay
prefix=%%PREFIX%%
# Define these dhcp6relay_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/dhcp6relay
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
dhcp6relay_enable=${dhcp6relay_enable:-"NO"} # Enable dhcp6relay
#dhcp6relay_program="${prefix}/sbin/${name}" # Location of dhcp6relay
#dhcp6relay_flags="-r fxp1 fxp0" # Flags to dhcp6relay program
. %%RC_SUBR%%
name="dhcp6relay"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
load_rc_config $name
run_rc_command "$1"