sysctl -w -> sysctl
This commit is contained in:
parent
ff8ac0d53c
commit
b90faaf350
@ -13,7 +13,7 @@ export PATH
|
||||
|
||||
trap "echo 'Reboot interrupted'; exit 1" 3
|
||||
|
||||
sysctl -w vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1 2>&1 >/dev/null
|
||||
sysctl vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1 2>&1 >/dev/null
|
||||
|
||||
echo ""
|
||||
echo "-------------------------------------------"
|
||||
|
@ -59,16 +59,16 @@ network_pass1() {
|
||||
echo -n 'Additional routing options:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp_extensions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
sysctl net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP_gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
sysctl net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
if [ "X$arpproxy_all" = X"YES" ]; then
|
||||
echo -n ' turning on ARP_PROXY_ALL: '
|
||||
sysctl -w net.link.ether.inet.proxyall=1 2>&1
|
||||
sysctl net.link.ether.inet.proxyall=1 2>&1
|
||||
fi
|
||||
echo '.'
|
||||
network_pass1_done=YES # Let future generations know we made it.
|
||||
|
@ -55,16 +55,16 @@ network_pass1() {
|
||||
echo -n 'Additional routing options:'
|
||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
||||
echo -n ' tcp_extensions=NO'
|
||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
sysctl net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
||||
sysctl net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
||||
fi
|
||||
if [ "X$gateway_enable" = X"YES" ]; then
|
||||
echo -n ' IP_gateway=YES'
|
||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
sysctl net.inet.ip.forwarding=1 >/dev/null 2>&1
|
||||
fi
|
||||
if [ "X$arpproxy_all" = X"YES" ]; then
|
||||
echo -n ' turning on ARP_PROXY_ALL: '
|
||||
sysctl -w net.link.ether.inet.proxyall=1 2>&1
|
||||
sysctl net.link.ether.inet.proxyall=1 2>&1
|
||||
fi
|
||||
echo '.'
|
||||
network_pass1_done=YES # Let future generations know we made it.
|
||||
|
@ -6,7 +6,7 @@ motd /etc/motd
|
||||
set HOME=/
|
||||
set PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
|
||||
|
||||
sysctl -w vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1
|
||||
sysctl vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1
|
||||
|
||||
### Special setup for one floppy PICOBSD ###
|
||||
echo
|
||||
|
@ -634,7 +634,7 @@ is discarding the extensions.
|
||||
This can easily be checked by doing ``sysctl net.inet.tcp.rfc1323''. If the
|
||||
result is 1, then the RFC1323 support is turned on.
|
||||
|
||||
Turn this off by doing ``sysctl -w net.inet.tcp.rfc1323=0'' (This is
|
||||
Turn this off by doing ``sysctl net.inet.tcp.rfc1323=0'' (This is
|
||||
called "net.inet.tcp.do_rfc1323" under BSD/OS).
|
||||
|
||||
For FreeBSD make sure that tcp_extension="NO" is in your /etc/rc.conf
|
||||
|
@ -316,9 +316,9 @@ linux_debug(int syscall, int toggle, int global)
|
||||
}
|
||||
|
||||
/*
|
||||
* Usage: sysctl -w linux.debug=<syscall_nr>.<0/1>
|
||||
* Usage: sysctl linux.debug=<syscall_nr>.<0/1>
|
||||
*
|
||||
* E.g.: sysctl -w linux.debug=21.0
|
||||
* E.g.: sysctl linux.debug=21.0
|
||||
*
|
||||
* As a special case, syscall "all" will apply to all syscalls globally.
|
||||
*/
|
||||
|
@ -151,7 +151,7 @@ kernel-install:
|
||||
fi ; \
|
||||
mv ${DESTDIR}${KODIR} ${DESTDIR}${KODIR}.old ; \
|
||||
if [ "$$thiskernel" = ${DESTDIR}${KODIR}/${KERNEL_KO} ] ; then \
|
||||
sysctl -w kern.bootfile=${DESTDIR}${KODIR}.old/${KERNEL_KO} ; \
|
||||
sysctl kern.bootfile=${DESTDIR}${KODIR}.old/${KERNEL_KO} ; \
|
||||
fi; \
|
||||
fi
|
||||
.endif
|
||||
|
@ -54,7 +54,7 @@
|
||||
* eg options BKTR_OVERRIDE CARD=1
|
||||
*
|
||||
* or using the sysclt hw.bt848.card
|
||||
* eg sysctl -w hw.bt848.card=1
|
||||
* eg sysctl hw.bt848.card=1
|
||||
*
|
||||
* where <card type> is one of the following card defines.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user