diff options
author | Crist J. Clark <cjc@FreeBSD.org> | 2002-02-08 13:25:33 +0000 |
---|---|---|
committer | Crist J. Clark <cjc@FreeBSD.org> | 2002-02-08 13:25:33 +0000 |
commit | 36a48df48ed35a2e1ae1e48a94b95b9da4c9b441 (patch) | |
tree | 0d94060bfe0fc2951090b630d3f590714aaf0489 /etc/rc.network | |
parent | fac6ec1f62409c76b2b14d0dc19071ec5851114f (diff) |
peter points out that we probably should not mess with the sysctl(8)
values at all if they are not purposefully set. What if the
administrator messed with them in /etc/sysctl.conf? We don't want to
overwrite them.
If 'log_in_vain' is zero, do not force the issue. If it is non-zero,
set it.
Notes
Notes:
svn path=/head/; revision=90403
Diffstat (limited to 'etc/rc.network')
-rw-r--r-- | etc/rc.network | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/rc.network b/etc/rc.network index 730c0969327e..a3ec57646449 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -874,10 +874,11 @@ network_pass4() { ;; 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 - + [ "${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 '.' network_pass4_done=YES } |