mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Ack, learn to spell "extentions" the same way in the same file.
Also make the output a little less cryptic for sysctl settings. Suggested by: bde
This commit is contained in:
parent
b14caa899a
commit
8141a0b639
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25365
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.3 1997/05/01 04:38:16 jkh Exp $
|
||||
# $Id: rc.network,v 1.4 1997/05/01 20:04:42 jkh Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -76,7 +76,7 @@ network_pass1() {
|
||||
|
||||
echo -n 'Additional routing options:'
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP gateway=1'
|
||||
echo -n ' IP gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -85,7 +85,7 @@ network_pass1() {
|
||||
fi
|
||||
|
||||
if [ "X$ipxgateway_enable" = X"YES" ]; then
|
||||
echo -n ' IPX gateway=1'
|
||||
echo -n ' IPX gateway=YES'
|
||||
sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
@ -99,8 +99,8 @@ network_pass1() {
|
||||
|
||||
network_pass2() {
|
||||
echo -n 'Doing additional network setup:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=0'
|
||||
if [ -n "$tcp_extentions" -a "x$tcp_extentions" != "xYES" ] ; then
|
||||
echo -n ' tcp extentions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
@ -166,7 +166,7 @@ network_pass3() {
|
||||
fi
|
||||
mountd ${mountd_flags}
|
||||
if [ "X${nfs_reserved_port_only}" = X"YES" ]; then
|
||||
echo -n ' nfsprivport=1'
|
||||
echo -n ' nfsprivport=YES'
|
||||
sysctl -w vfs.nfs.nfs_privport=1 >/dev/null 2>&1
|
||||
fi
|
||||
echo -n ' nfsd'; nfsd -u -t 4
|
||||
|
Loading…
Reference in New Issue
Block a user