From bfeb0de2e8d008168e7c4efe6419ab18c7d3b950 Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Mon, 9 Sep 2019 18:11:51 +0300 Subject: [PATCH] udp2raw-tunnel: update files/udp2raw-daemon.iptables.initd --- net-vpn/udp2raw-tunnel/files/udp2raw-daemon.iptables.initd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net-vpn/udp2raw-tunnel/files/udp2raw-daemon.iptables.initd b/net-vpn/udp2raw-tunnel/files/udp2raw-daemon.iptables.initd index 41f6e17a4..e74a6b4bc 100644 --- a/net-vpn/udp2raw-tunnel/files/udp2raw-daemon.iptables.initd +++ b/net-vpn/udp2raw-tunnel/files/udp2raw-daemon.iptables.initd @@ -25,8 +25,11 @@ retry="${UDP2RAW_TERMTIMEOUT}" extra_commands="checkconfig" depend() { - need iptables before net + + if ! [ -z ${UDP2RAW_IPT_DISABLED} ]; then + need iptables + fi } _gen_ipt_rule() { @@ -39,7 +42,7 @@ _update_ipt_rule() { local rule command=${1} local ipt_binary=$(which iptables) - if [[ "${UDP2RAW_IPT_DISABLED}" == "1" ]]; then + if ! [ -z ${UDP2RAW_IPT_DISABLED} ]; then return fi