Drop -e option from sysctl, because we explicitly want to know about
unknown keys. Also not printing values is needless, if we need to
redirect the key name anyway. And the order of the redirections needs to
be the other way round.
Package-Manager: Portage-2.3.6, Repoman-2.3.3
#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
CONNTRACKD_BIN="/usr/sbin/conntrackd"
for k in net.netfilter.nf_conntrack_max \
net.ipv4.netfilter.ip_conntrack_max \
net.nf_conntrack_max; do
- if sysctl -e -n ${k} 2>&1 > /dev/null; then
+ if sysctl ${k} >/dev/null 2>&1; then
nf_ct_available=1 # sysctl key found
break
fi