summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/netoptions
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/netoptions')
-rwxr-xr-xetc/rc.d/netoptions32
1 files changed, 16 insertions, 16 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index 433ce82..09ed6ef 100755
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -40,44 +40,44 @@ netoptions_inet()
[12])
netoptions_init
echo -n " log_in_vain=${log_in_vain}"
- ${SYSCTL_W} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null
- ${SYSCTL_W} net.inet.udp.log_in_vain=${log_in_vain} >/dev/null
+ ${SYSCTL} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null
+ ${SYSCTL} net.inet.udp.log_in_vain=${log_in_vain} >/dev/null
;;
*)
- ${SYSCTL_W} net.inet.tcp.log_in_vain=0 >/dev/null
- ${SYSCTL_W} net.inet.udp.log_in_vain=0 >/dev/null
+ ${SYSCTL} net.inet.tcp.log_in_vain=0 >/dev/null
+ ${SYSCTL} net.inet.udp.log_in_vain=0 >/dev/null
;;
esac
if checkyesno tcp_extensions; then
- ${SYSCTL_W} net.inet.tcp.rfc1323=1 >/dev/null
+ ${SYSCTL} net.inet.tcp.rfc1323=1 >/dev/null
else
netoptions_init
echo -n " rfc1323 extensions=${tcp_extensions}"
- ${SYSCTL_W} net.inet.tcp.rfc1323=0 >/dev/null
+ ${SYSCTL} net.inet.tcp.rfc1323=0 >/dev/null
fi
if checkyesno tcp_keepalive; then
- ${SYSCTL_W} net.inet.tcp.always_keepalive=1 >/dev/null
+ ${SYSCTL} net.inet.tcp.always_keepalive=1 >/dev/null
else
netoptions_init
echo -n " TCP keepalive=${tcp_keepalive}"
- ${SYSCTL_W} net.inet.tcp.always_keepalive=0 >/dev/null
+ ${SYSCTL} net.inet.tcp.always_keepalive=0 >/dev/null
fi
if checkyesno tcp_drop_synfin; then
netoptions_init
echo -n " drop SYN+FIN packets=${tcp_drop_synfin}"
- ${SYSCTL_W} net.inet.tcp.drop_synfin=1 >/dev/null
+ ${SYSCTL} net.inet.tcp.drop_synfin=1 >/dev/null
else
- ${SYSCTL_W} net.inet.tcp.drop_synfin=0 >/dev/null
+ ${SYSCTL} net.inet.tcp.drop_synfin=0 >/dev/null
fi
case ${ip_portrange_first} in
[0-9]*)
netoptions_init
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
@@ -85,7 +85,7 @@ netoptions_inet()
[0-9]*)
netoptions_init
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
}
@@ -95,16 +95,16 @@ netoptions_inet6()
if checkyesno ipv6_ipv4mapping; then
netoptions_init
echo -n " ipv4-mapped-ipv6=${ipv6_ipv4mapping}"
- ${SYSCTL_W} net.inet6.ip6.v6only=0 >/dev/null
+ ${SYSCTL} net.inet6.ip6.v6only=0 >/dev/null
else
- ${SYSCTL_W} net.inet6.ip6.v6only=1 >/dev/null
+ ${SYSCTL} net.inet6.ip6.v6only=1 >/dev/null
fi
if checkyesno ipv6_privacy; then
netoptions_init
echo -n " IPv6 Privacy Addresses"
- ${SYSCTL_W} net.inet6.ip6.use_tempaddr=1 >/dev/null
- ${SYSCTL_W} net.inet6.ip6.prefer_tempaddr=1 >/dev/null
+ ${SYSCTL} net.inet6.ip6.use_tempaddr=1 >/dev/null
+ ${SYSCTL} net.inet6.ip6.prefer_tempaddr=1 >/dev/null
fi
}
OpenPOWER on IntegriCloud