2a7ea7e487
o Ensure rc.d/network2 and rc.d/network3 are not automatically run during boot o Modify script headers so rcorder(8) can put the two scripts in the correct sequence.
37 lines
581 B
Bash
37 lines
581 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: network3
|
|
# REQUIRE: localdaemons
|
|
# BEFORE: securelevel
|
|
# KEYWORD: FreeBSD nostart
|
|
|
|
. /etc/rc.subr
|
|
|
|
load_rc_config 'XXX'
|
|
|
|
echo -n 'Additional TCP options:'
|
|
case ${log_in_vain} in
|
|
[Nn][Oo] | '')
|
|
log_in_vain=0
|
|
;;
|
|
[Yy][Ee][Ss])
|
|
log_in_vain=1
|
|
;;
|
|
[0-9]*)
|
|
;;
|
|
*)
|
|
echo " invalid log_in_vain setting: ${log_in_vain}"
|
|
log_in_vain=0
|
|
;;
|
|
esac
|
|
|
|
[ "${log_in_vain}" -ne 0 ] && (
|
|
echo -n " log_in_vain=${log_in_vain}"
|
|
sysctl net.inet.tcp.log_in_vain="${log_in_vain}" >/dev/null
|
|
sysctl net.inet.udp.log_in_vain="${log_in_vain}" >/dev/null
|
|
)
|
|
echo '.'
|