aboutsummaryrefslogtreecommitdiffstats
path: root/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-03 14:35:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-03 14:35:10 +0000
commit3e9fded968c102a9150b8a3da32a8d13daa7f59f (patch)
tree574b18a757de79357eee3ce810f7b74cfd063deb /main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
parent61c24da0eb5c72a390c1bb54c2f48d0c748e1fcc (diff)
downloadaports-3e9fded968c102a9150b8a3da32a8d13daa7f59f.tar.bz2
aports-3e9fded968c102a9150b8a3da32a8d13daa7f59f.tar.xz
main/shorewall-shell: do not remove ip rule from addr when no gateway
We should not remove any ip rule that we have not created our selves
Diffstat (limited to 'main/shorewall-shell/shorewall-shell-providers-gateway-none.patch')
-rw-r--r--main/shorewall-shell/shorewall-shell-providers-gateway-none.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
index 531c37ed77..53459ab5f5 100644
--- a/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
+++ b/main/shorewall-shell/shorewall-shell-providers-gateway-none.patch
@@ -36,3 +36,14 @@
fi
save_command "if [ -w /etc/iproute2/rt_tables ]; then"
+--- ./lib.providers.orig
++++ ./lib.providers
+@@ -267,7 +267,7 @@
+ rulenum=\$((\$rulenum + 1))
+ done
+ __EOF__
+- elif [ -n "$DELETE_THEN_ADD" ]; then
++ elif [ -n "$DELETE_THEN_ADD" ] && [ -n "$gateway" ]; then
+ indent >&3 << __EOF__
+
+ find_interface_addresses $interface | while read address; do