summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2017-09-11 05:00:37 +0000
committerSven Wegener <swegener@gentoo.org>2017-09-11 05:08:39 +0000
commit16e9bf9d9784c088dc70a3219ca1fe445e52ca12 (patch)
tree0e1489e41a82328c28ff0f8b4690f8e440d2138b /net-firewall
parentprofiles: Revert Mask kde-apps/knotify for removal (diff)
downloadgentoo-16e9bf9d9784c088dc70a3219ca1fe445e52ca12.tar.gz
gentoo-16e9bf9d9784c088dc70a3219ca1fe445e52ca12.tar.bz2
gentoo-16e9bf9d9784c088dc70a3219ca1fe445e52ca12.zip
net-firewall/conntrack-tools: Fix module check in init script
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
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/conntrack-tools/files/conntrackd.initd-r34
1 files changed, 2 insertions, 2 deletions
diff --git a/net-firewall/conntrack-tools/files/conntrackd.initd-r3 b/net-firewall/conntrack-tools/files/conntrackd.initd-r3
index 180a07bcbf55..eddcae97ec3d 100644
--- a/net-firewall/conntrack-tools/files/conntrackd.initd-r3
+++ b/net-firewall/conntrack-tools/files/conntrackd.initd-r3
@@ -1,5 +1,5 @@
#!/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"
@@ -17,7 +17,7 @@ checkconfig() {
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