summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2011-06-19 22:48:40 +0000
committerdougb <dougb@FreeBSD.org>2011-06-19 22:48:40 +0000
commit1175683ecd587ecd5f1441b4c502e5dfe57b58c5 (patch)
treeab2174cc686f252a993c1902bcb55fb97ee651c9 /etc
parentbe57e75b00c1ba88332a570e83564f6cae5dba45 (diff)
downloadFreeBSD-src-1175683ecd587ecd5f1441b4c502e5dfe57b58c5.zip
FreeBSD-src-1175683ecd587ecd5f1441b4c502e5dfe57b58c5.tar.gz
Add the netwait rc.d script. It waits for the specified period for the
network to become active. PR: conf/151063 Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf7
-rw-r--r--etc/rc.d/Makefile2
-rwxr-xr-xetc/rc.d/mountcritremote2
3 files changed, 9 insertions, 2 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 8dfd5e1..d467eaa 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -444,6 +444,13 @@ ubthidhci_enable="NO" # Switch an USB BT controller present on
#ubthidhci_addr="2" # Check usbconfig list to find the correct
# numbers for your system.
+### Network link/usability verification options
+netwait_enable="NO" # Enable rc.d/netwait (or NO)
+#netwait_ip="" # IP addresses to be pinged by netwait.
+netwait_timeout="60" # Total number of seconds to perform pings.
+#netwait_if="" # Interface name to watch link state on.
+netwait_if_timeout="30" # Total number of seconds to monitor link state.
+
### Miscellaneous network options: ###
icmp_bmcastecho="NO" # respond to broadcast ping packets
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index ada10f8..65759df 100644
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -22,7 +22,7 @@ FILES= DAEMON FILESYSTEMS LOGIN NETWORKING SERVERS \
ldconfig local localpkg lockd lpd \
mixer motd mountcritlocal mountcritremote mountlate \
mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \
- named natd netif netoptions \
+ named natd netif netoptions netwait \
newsyslog nfsclient nfscbd nfsd \
nfsserver nfsuserd nisdomain nsswitch ntpd ntpdate \
othermta \
diff --git a/etc/rc.d/mountcritremote b/etc/rc.d/mountcritremote
index 91500e2..62e5079 100755
--- a/etc/rc.d/mountcritremote
+++ b/etc/rc.d/mountcritremote
@@ -4,7 +4,7 @@
#
# PROVIDE: mountcritremote
-# REQUIRE: NETWORKING FILESYSTEMS cleanvar ipsec
+# REQUIRE: NETWORKING FILESYSTEMS cleanvar ipsec netwait
# KEYWORD: nojail
. /etc/rc.subr
OpenPOWER on IntegriCloud