summaryrefslogtreecommitdiffstats
path: root/etc/netstart
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-11 19:08:37 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-11 19:08:37 +0000
commite3b120088fc0412693845ad0df34cf1d3551744d (patch)
treea131388113315370552d956fc65fdfc3e25fb2ca /etc/netstart
parenta0a1fbecf5993c46ab6e139646c02906890b3a57 (diff)
downloadFreeBSD-src-e3b120088fc0412693845ad0df34cf1d3551744d.zip
FreeBSD-src-e3b120088fc0412693845ad0df34cf1d3551744d.tar.gz
Reviewed by: wollman
Add a knob to make it easy to turn off RFC 1323 and RFC 1644 options.
Diffstat (limited to 'etc/netstart')
-rwxr-xr-xetc/netstart12
1 files changed, 11 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart
index 7bbb70a..f86cbfc 100755
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: netstart,v 1.28 1995/04/12 16:58:06 ache Exp $
+# $Id: netstart,v 1.29 1995/04/24 23:52:15 rgrimes Exp $
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
# If there is a global system configuration file, suck it in.
@@ -18,6 +18,16 @@ if [ -n "$defaultdomainname" -a "x$defaultdomainname" != "xNO" ] ; then
domainname $defaultdomainname
fi
+#
+# XXX This is known to cause an error if /usr is nfs mounted since it
+# will not be avaliable until after the network is up :-(. Once the
+# relocation of sysctl to /sbin is done that problem will go away.
+#
+if [ -n "$tcp_extensions" -a "x$tcp_extensions" = "xNO" ] ; then
+ sysctl -nw net.inet.tcp.rfc1323=0
+ sysctl -nw net.inet.tcp.rfc1644=0
+fi
+
# Set up all the network interfaces, calling startup scripts if needed
for ifn in ${network_interfaces}; do
if [ -e /etc/start_if.${ifn} ]; then
OpenPOWER on IntegriCloud