summaryrefslogtreecommitdiffstats
path: root/net/dhcp6/files
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2004-08-18 02:04:15 +0000
committersumikawa <sumikawa@FreeBSD.org>2004-08-18 02:04:15 +0000
commitb6d68adb21624bec6aa5902fe7c86f84a7b11dd8 (patch)
tree96cf944480b0fe9abbfc825cd7e2b53d1fe351cc /net/dhcp6/files
parent1e1f107d584c4e1de31871314002b9d6ef83cee9 (diff)
downloadFreeBSD-ports-b6d68adb21624bec6aa5902fe7c86f84a7b11dd8.zip
FreeBSD-ports-b6d68adb21624bec6aa5902fe7c86f84a7b11dd8.tar.gz
Add rc scripts.
Submitted by: ume
Diffstat (limited to 'net/dhcp6/files')
-rw-r--r--net/dhcp6/files/dhcp6c.sh36
-rw-r--r--net/dhcp6/files/dhcp6relay.sh35
-rw-r--r--net/dhcp6/files/dhcp6s.sh36
3 files changed, 107 insertions, 0 deletions
diff --git a/net/dhcp6/files/dhcp6c.sh b/net/dhcp6/files/dhcp6c.sh
new file mode 100644
index 0000000..32117d1
--- /dev/null
+++ b/net/dhcp6/files/dhcp6c.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dhcp6c
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+# NOTE for FreeBSD 5.0+:
+# If you want this script to start with the base rc scripts
+# move dhcp6c.sh to /etc/rc.d/dhcp6c
+
+prefix=%%PREFIX%%
+
+# Define these dhcp6c_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/dhcp6c
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+dhcp6c_enable=${dhcp6c_enable:-"NO"} # Enable dhcp6c
+#dhcp6c_program="${prefix}/sbin/${name}" # Location of dhcp6c
+#dhcp6c_flags="fxp0" # Flags to dhcp6c program
+
+. %%RC_SUBR%%
+
+name="dhcp6c"
+rcvar=`set_rcvar`
+command="${prefix}/sbin/${name}"
+required_files="${prefix}/etc/${name}.conf"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/net/dhcp6/files/dhcp6relay.sh b/net/dhcp6/files/dhcp6relay.sh
new file mode 100644
index 0000000..bff8d98
--- /dev/null
+++ b/net/dhcp6/files/dhcp6relay.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dhcp6relay
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD 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"
diff --git a/net/dhcp6/files/dhcp6s.sh b/net/dhcp6/files/dhcp6s.sh
new file mode 100644
index 0000000..603ed4a
--- /dev/null
+++ b/net/dhcp6/files/dhcp6s.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dhcp6s
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+# NOTE for FreeBSD 5.0+:
+# If you want this script to start with the base rc scripts
+# move dhcp6s.sh to /etc/rc.d/dhcp6s
+
+prefix=%%PREFIX%%
+
+# Define these dhcp6s_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/dhcp6s
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+dhcp6s_enable=${dhcp6s_enable:-"NO"} # Enable dhcp6s
+#dhcp6s_program="${prefix}/sbin/${name}" # Location of dhcp6s
+#dhcp6s_flags="fxp0" # Flags to dhcp6s program
+
+. %%RC_SUBR%%
+
+name="dhcp6s"
+rcvar=`set_rcvar`
+command="${prefix}/sbin/${name}"
+required_files="${prefix}/etc/${name}.conf"
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud