diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-06-30 09:18:17 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-06-30 09:39:16 +0200 |
commit | 47fd8517c3d1af028f7caf8ba09fc9147f57fe3d (patch) | |
tree | 22162e0aacb9e7bad204060bc29d2476cedaffd0 /net-misc/miniupnpd/files/miniupnpd-init.d-r2 | |
parent | net-misc/miniupnpd: Lower iptables dep to 'use' in init.d (diff) | |
download | gentoo-47fd8517c3d1af028f7caf8ba09fc9147f57fe3d.tar.gz gentoo-47fd8517c3d1af028f7caf8ba09fc9147f57fe3d.tar.bz2 gentoo-47fd8517c3d1af028f7caf8ba09fc9147f57fe3d.zip |
net-misc/miniupnpd: Invert boolean for calling iptables
The negative logic is confusing, and it would get even more confusing
with the incoming ip6tables and nftables support.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-misc/miniupnpd/files/miniupnpd-init.d-r2')
-rw-r--r-- | net-misc/miniupnpd/files/miniupnpd-init.d-r2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net-misc/miniupnpd/files/miniupnpd-init.d-r2 b/net-misc/miniupnpd/files/miniupnpd-init.d-r2 index 2f9dc5fe6f3c..8b9f0579f223 100644 --- a/net-misc/miniupnpd/files/miniupnpd-init.d-r2 +++ b/net-misc/miniupnpd/files/miniupnpd-init.d-r2 @@ -15,7 +15,7 @@ depend() { start_pre() { local retval=0 - if [ -z "${no_iptables_scripts}" ]; then + if [ -n "${iptables_scripts}" ]; then /etc/miniupnpd/iptables_init.sh || retval=${?} fi @@ -25,7 +25,7 @@ start_pre() { stop_post() { local retval=0 - if [ -z "${no_iptables_scripts}" ]; then + if [ -n "${iptables_scripts}" ]; then /etc/miniupnpd/iptables_removeall.sh fi |