diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-12-11 08:21:46 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-12-11 08:21:46 +0000 |
commit | d4d2e898a1548edfa978a8d9177bf0253dff7f27 (patch) | |
tree | 2fffce8490743a92a967ebbb9429747cd047f864 | |
parent | 19d37d835c16157a3a7dbf037584770026820a37 (diff) | |
download | src-d4d2e898a1548edfa978a8d9177bf0253dff7f27.tar.gz src-d4d2e898a1548edfa978a8d9177bf0253dff7f27.zip |
s/sysctl -w/sysctl/
Notes
Notes:
svn path=/head/; revision=87646
-rw-r--r-- | etc/etc.alpha/rc.alpha | 2 | ||||
-rw-r--r-- | etc/etc.ia64/rc.ia64 | 2 | ||||
-rw-r--r-- | etc/network.subr | 38 | ||||
-rw-r--r-- | etc/rc | 8 | ||||
-rw-r--r-- | etc/rc.d/netoptions | 38 | ||||
-rwxr-xr-x | etc/rc.d/network | 8 | ||||
-rw-r--r-- | etc/rc.d/network1 | 38 | ||||
-rw-r--r-- | etc/rc.d/network2 | 38 | ||||
-rw-r--r-- | etc/rc.d/network3 | 38 | ||||
-rw-r--r-- | etc/rc.d/network_ipv6 | 18 | ||||
-rw-r--r-- | etc/rc.d/routing | 38 | ||||
-rwxr-xr-x | etc/rc.d/securelevel | 4 | ||||
-rw-r--r-- | etc/rc.network | 38 | ||||
-rw-r--r-- | etc/rc.network6 | 18 |
14 files changed, 163 insertions, 163 deletions
diff --git a/etc/etc.alpha/rc.alpha b/etc/etc.alpha/rc.alpha index cc2b3a340d63..9488e02ef537 100644 --- a/etc/etc.alpha/rc.alpha +++ b/etc/etc.alpha/rc.alpha @@ -21,7 +21,7 @@ esac # case ${unaligned_print} in [Nn][Oo]) - sysctl -w machdep.unaligned_print=0 + sysctl machdep.unaligned_print=0 ;; esac diff --git a/etc/etc.ia64/rc.ia64 b/etc/etc.ia64/rc.ia64 index 1b2991df1a34..ecde18ef3ba1 100644 --- a/etc/etc.ia64/rc.ia64 +++ b/etc/etc.ia64/rc.ia64 @@ -10,7 +10,7 @@ echo -n 'Initial rc.ia64 initialization:' # case ${unaligned_print} in [Nn][Oo]) - sysctl -w machdep.unaligned_print=0 + sysctl machdep.unaligned_print=0 ;; esac diff --git a/etc/network.subr b/etc/network.subr index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac @@ -117,7 +117,7 @@ case ${harvest_interrupt} in ;; *) if [ -w /dev/random ]; then - /sbin/sysctl -w kern.random.sys.harvest.interrupt=1 >/dev/null + /sbin/sysctl kern.random.sys.harvest.interrupt=1 >/dev/null echo -n ' interrupts' fi ;; @@ -128,7 +128,7 @@ case ${harvest_ethernet} in ;; *) if [ -w /dev/random ]; then - /sbin/sysctl -w kern.random.sys.harvest.ethernet=1 >/dev/null + /sbin/sysctl kern.random.sys.harvest.ethernet=1 >/dev/null echo -n ' ethernet' fi ;; @@ -139,7 +139,7 @@ case ${harvest_p_to_p} in ;; *) if [ -w /dev/random ]; then - /sbin/sysctl -w kern.random.sys.harvest.point_to_point=1 >/dev/null + /sbin/sysctl kern.random.sys.harvest.point_to_point=1 >/dev/null echo -n ' point_to_point' fi ;; @@ -847,7 +847,7 @@ case ${kern_securelevel_enable} in [Yy][Ee][Ss]) if [ "${kern_securelevel}" -ge 0 ]; then echo 'Raising kernel security level: ' - sysctl -w kern.securelevel=${kern_securelevel} + sysctl kern.securelevel=${kern_securelevel} fi ;; esac diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac diff --git a/etc/rc.d/network b/etc/rc.d/network index c9856b6008df..70a8019582cc 100755 --- a/etc/rc.d/network +++ b/etc/rc.d/network @@ -119,8 +119,8 @@ network_start() # route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject - sysctl -w net.inet6.ip6.forwarding=0 >/dev/null - sysctl -w net.inet6.ip6.accept_rtadv=0 >/dev/null + sysctl net.inet6.ip6.forwarding=0 >/dev/null + sysctl net.inet6.ip6.accept_rtadv=0 >/dev/null # backward compatibility # @@ -139,12 +139,12 @@ network_start() case $ip6mode in router) echo 'IPv6 mode: router' - sysctl -w net.inet6.ip6.forwarding=1 >/dev/null + sysctl net.inet6.ip6.forwarding=1 >/dev/null ;; autohost) echo 'IPv6 mode: autoconfigured host' - sysctl -w net.inet6.ip6.accept_rtadv=1 >/dev/null + sysctl net.inet6.ip6.accept_rtadv=1 >/dev/null ;; host) diff --git a/etc/rc.d/network1 b/etc/rc.d/network1 index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/rc.d/network1 +++ b/etc/rc.d/network1 @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac diff --git a/etc/rc.d/network2 b/etc/rc.d/network2 index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/rc.d/network2 +++ b/etc/rc.d/network2 @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac diff --git a/etc/rc.d/network3 b/etc/rc.d/network3 index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/rc.d/network3 +++ b/etc/rc.d/network3 @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6 index 37dfae59521f..585dd99e2cb3 100644 --- a/etc/rc.d/network_ipv6 +++ b/etc/rc.d/network_ipv6 @@ -109,7 +109,7 @@ network6_pass1() { case ${ipv6_firewall_logging} in [Yy][Ee][Ss] | '') echo 'IPv6 Firewall logging=YES' - sysctl -w net.inet6.ip6.fw.verbose=1 >/dev/null + sysctl net.inet6.ip6.fw.verbose=1 >/dev/null ;; *) ;; @@ -139,8 +139,8 @@ network6_pass1() { case ${ipv6_gateway_enable} in [Yy][Ee][Ss]) # act as a router - sysctl -w net.inet6.ip6.forwarding=1 - sysctl -w net.inet6.ip6.accept_rtadv=0 + sysctl net.inet6.ip6.forwarding=1 + sysctl net.inet6.ip6.accept_rtadv=0 # wait for DAD for i in $ipv6_network_interfaces; do @@ -151,8 +151,8 @@ network6_pass1() { ;; *) # act as endhost - start with manual configuration - sysctl -w net.inet6.ip6.forwarding=0 - sysctl -w net.inet6.ip6.accept_rtadv=0 + sysctl net.inet6.ip6.forwarding=0 + sysctl net.inet6.ip6.accept_rtadv=0 ;; esac @@ -266,11 +266,11 @@ network6_pass1() { case ${ipv6_ipv4mapping} in [Yy][Ee][Ss]) echo -n ' IPv4 mapped IPv6 address support=YES' - sysctl -w net.inet6.ip6.v6only=0 >/dev/null + sysctl net.inet6.ip6.v6only=0 >/dev/null ;; '' | *) echo -n ' IPv4 mapped IPv6 address support=NO' - sysctl -w net.inet6.ip6.v6only=1 >/dev/null + sysctl net.inet6.ip6.v6only=1 >/dev/null ;; esac @@ -340,7 +340,7 @@ network6_interface_setup() { # You can configure only single interface, as # specification assumes that autoconfigured host has # single interface only. - sysctl -w net.inet6.ip6.accept_rtadv=1 + sysctl net.inet6.ip6.accept_rtadv=1 set ${rtsol_interfaces} ifconfig $1 up rtsol $1 @@ -432,7 +432,7 @@ network6_faith_setup() { [Nn][Oo] | '') ;; *) - sysctl -w net.inet6.ip6.keepfaith=1 + sysctl net.inet6.ip6.keepfaith=1 ifconfig faith0 up for prefix in ${ipv6_faith_prefix}; do prefixlen=`expr "${prefix}" : ".*/\(.*\)"` diff --git a/etc/rc.d/routing b/etc/rc.d/routing index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac diff --git a/etc/rc.d/securelevel b/etc/rc.d/securelevel index a683a7456397..c3f3121ef47b 100755 --- a/etc/rc.d/securelevel +++ b/etc/rc.d/securelevel @@ -19,12 +19,12 @@ securelevel_start() # if [ -n "$securelevel" ]; then echo -n "Setting securelevel: " - sysctl -w kern.securelevel=$securelevel + sysctl kern.securelevel=$securelevel else securelevel=`sysctl -n kern.securelevel` if [ x"$securelevel" = x0 ]; then echo -n "Setting securelevel: " - sysctl -w kern.securelevel=1 + sysctl kern.securelevel=1 fi fi } diff --git a/etc/rc.network b/etc/rc.network index b9b67fef20d2..fa6af3e758a3 100644 --- a/etc/rc.network +++ b/etc/rc.network @@ -366,7 +366,7 @@ network_pass1() { case ${firewall_logging} in [Yy][Ee][Ss] | '') echo 'Firewall logging=YES' - sysctl -w net.inet.ip.fw.verbose=1 >/dev/null + sysctl net.inet.ip.fw.verbose=1 >/dev/null ;; *) ;; @@ -409,77 +409,77 @@ network_pass1() { ;; *) echo -n ' tcp extensions=NO' - sysctl -w net.inet.tcp.rfc1323=0 >/dev/null + sysctl net.inet.tcp.rfc1323=0 >/dev/null ;; esac case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' - sysctl -w net.inet.icmp.bmcastecho=1 >/dev/null + sysctl net.inet.icmp.bmcastecho=1 >/dev/null ;; esac case ${icmp_drop_redirect} in [Yy][Ee][Ss]) echo -n ' ignore ICMP redirect=YES' - sysctl -w net.inet.icmp.drop_redirect=1 >/dev/null + sysctl net.inet.icmp.drop_redirect=1 >/dev/null ;; esac case ${icmp_log_redirect} in [Yy][Ee][Ss]) echo -n ' log ICMP redirect=YES' - sysctl -w net.inet.icmp.log_redirect=1 >/dev/null + sysctl net.inet.icmp.log_redirect=1 >/dev/null ;; esac case ${gateway_enable} in [Yy][Ee][Ss]) echo -n ' IP gateway=YES' - sysctl -w net.inet.ip.forwarding=1 >/dev/null + sysctl net.inet.ip.forwarding=1 >/dev/null ;; esac case ${forward_sourceroute} in [Yy][Ee][Ss]) echo -n ' do source routing=YES' - sysctl -w net.inet.ip.sourceroute=1 >/dev/null + sysctl net.inet.ip.sourceroute=1 >/dev/null ;; esac case ${accept_sourceroute} in [Yy][Ee][Ss]) echo -n ' accept source routing=YES' - sysctl -w net.inet.ip.accept_sourceroute=1 >/dev/null + sysctl net.inet.ip.accept_sourceroute=1 >/dev/null ;; esac case ${tcp_keepalive} in [Nn][Oo]) echo -n ' TCP keepalive=NO' - sysctl -w net.inet.tcp.always_keepalive=0 >/dev/null + sysctl net.inet.tcp.always_keepalive=0 >/dev/null ;; esac case ${tcp_drop_synfin} in [Yy][Ee][Ss]) echo -n ' drop SYN+FIN packets=YES' - sysctl -w net.inet.tcp.drop_synfin=1 >/dev/null + sysctl net.inet.tcp.drop_synfin=1 >/dev/null ;; esac case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' - sysctl -w net.ipx.ipx.ipxforwarding=1 >/dev/null + sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null ;; esac case ${arpproxy_all} in [Yy][Ee][Ss]) echo -n ' ARP proxyall=YES' - sysctl -w net.link.ether.inet.proxyall=1 >/dev/null + sysctl net.link.ether.inet.proxyall=1 >/dev/null ;; esac @@ -488,7 +488,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_first=$ip_portrange_first" - sysctl -w net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null ;; esac @@ -497,7 +497,7 @@ network_pass1() { ;; *) echo -n " ip_portrange_last=$ip_portrange_last" - sysctl -w net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null ;; esac @@ -672,7 +672,7 @@ network_pass3() { case ${nfs_reserved_port_only} in [Yy][Ee][Ss]) echo -n ' NFS on reserved port only=YES' - sysctl -w vfs.nfsrv.nfs_privport=1 > /dev/null + sysctl vfs.nfsrv.nfs_privport=1 > /dev/null ;; esac @@ -716,10 +716,10 @@ network_pass3() { [Yy][Ee][Ss]) if [ -n "${nfs_access_cache}" ]; then echo -n " NFS access cache time=${nfs_access_cache}" - sysctl -w vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null + sysctl vfs.nfs.access_cache_timeout=${nfs_access_cache} >/dev/null fi if [ -n "${nfs_bufpackets}" ]; then - sysctl -w vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null + sysctl vfs.nfs.bufpackets=${nfs_bufpackets} > /dev/null fi ;; esac @@ -838,8 +838,8 @@ network_pass4() { ;; *) echo -n ' log_in_vain=YES' - sysctl -w net.inet.tcp.log_in_vain=1 >/dev/null - sysctl -w net.inet.udp.log_in_vain=1 >/dev/null + sysctl net.inet.tcp.log_in_vain=1 >/dev/null + sysctl net.inet.udp.log_in_vain=1 >/dev/null ;; esac diff --git a/etc/rc.network6 b/etc/rc.network6 index 37dfae59521f..585dd99e2cb3 100644 --- a/etc/rc.network6 +++ b/etc/rc.network6 @@ -109,7 +109,7 @@ network6_pass1() { case ${ipv6_firewall_logging} in [Yy][Ee][Ss] | '') echo 'IPv6 Firewall logging=YES' - sysctl -w net.inet6.ip6.fw.verbose=1 >/dev/null + sysctl net.inet6.ip6.fw.verbose=1 >/dev/null ;; *) ;; @@ -139,8 +139,8 @@ network6_pass1() { case ${ipv6_gateway_enable} in [Yy][Ee][Ss]) # act as a router - sysctl -w net.inet6.ip6.forwarding=1 - sysctl -w net.inet6.ip6.accept_rtadv=0 + sysctl net.inet6.ip6.forwarding=1 + sysctl net.inet6.ip6.accept_rtadv=0 # wait for DAD for i in $ipv6_network_interfaces; do @@ -151,8 +151,8 @@ network6_pass1() { ;; *) # act as endhost - start with manual configuration - sysctl -w net.inet6.ip6.forwarding=0 - sysctl -w net.inet6.ip6.accept_rtadv=0 + sysctl net.inet6.ip6.forwarding=0 + sysctl net.inet6.ip6.accept_rtadv=0 ;; esac @@ -266,11 +266,11 @@ network6_pass1() { case ${ipv6_ipv4mapping} in [Yy][Ee][Ss]) echo -n ' IPv4 mapped IPv6 address support=YES' - sysctl -w net.inet6.ip6.v6only=0 >/dev/null + sysctl net.inet6.ip6.v6only=0 >/dev/null ;; '' | *) echo -n ' IPv4 mapped IPv6 address support=NO' - sysctl -w net.inet6.ip6.v6only=1 >/dev/null + sysctl net.inet6.ip6.v6only=1 >/dev/null ;; esac @@ -340,7 +340,7 @@ network6_interface_setup() { # You can configure only single interface, as # specification assumes that autoconfigured host has # single interface only. - sysctl -w net.inet6.ip6.accept_rtadv=1 + sysctl net.inet6.ip6.accept_rtadv=1 set ${rtsol_interfaces} ifconfig $1 up rtsol $1 @@ -432,7 +432,7 @@ network6_faith_setup() { [Nn][Oo] | '') ;; *) - sysctl -w net.inet6.ip6.keepfaith=1 + sysctl net.inet6.ip6.keepfaith=1 ifconfig faith0 up for prefix in ${ipv6_faith_prefix}; do prefixlen=`expr "${prefix}" : ".*/\(.*\)"` |