diff -r 7a14ec1b314b -r 9ac74b0e9507 etc/rc.d/netwait --- a/etc/rc.d/netwait Tue Apr 02 12:48:57 2019 +0200 +++ b/etc/rc.d/netwait Tue Apr 02 13:31:09 2019 +0200 @@ -4,7 +4,7 @@ # # PROVIDE: netwait # REQUIRE: devd ipfilter ipfw pf routing -# KEYWORD: nojail +# KEYWORD: nojail resume # # The netwait script helps handle two situations: # - Systems with USB or other late-attaching network hardware which @@ -23,8 +23,23 @@ name="netwait" desc="Wait for network devices or the network being up" rcvar="netwait_enable" +rcvars="netwait_ip netwait_timeout netwait_if netwait_if_timeout" +netwait_enable_defval="NO" +netwait_ip_defval="" +netwait_timeout_defval="60" +netwait_if_defval="" +netwait_if_timeout_defval="30" + +netwait_enable_desc="Enable rc.d/netwait (or NO)" +netwait_ip_desc="Wait for ping response from any IP in this list." +netwait_timeout_desc="Total number of seconds to perform pings." +netwait_if_desc="Wait for active link on each intf in this list." +netwait_if_timeout_desc="Total number of seconds to monitor link state." + +extra_commands="resume" start_cmd="${name}_start" +resume_cmd="${name}_start" stop_cmd=":" netwait_start()