47ba326abe
dependency was introduced because this script had rc.d/localpkg (which is *after* rc.d/NETWORKING) in its REQUIRE line. From an examination of its contents it seems that only the availability of a local filesystem is necessary for this script to function properly.
36 lines
550 B
Bash
36 lines
550 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: netoptions
|
|
# REQUIRE: FILESYSTEMS
|
|
# KEYWORD: nojail
|
|
|
|
. /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 '.'
|