From 82c97b4ac121269ecb8296d74f0e5ee27d8d81b5 Mon Sep 17 00:00:00 2001 From: Rodrigo Freire Date: Sat, 5 Mar 2016 21:07:54 -0300 Subject: network: Treat other tunnel interfaces, fixes ifdown stage This patch is a complement of commit 5e9dd516e2e0 ("add bonding & xDSL to the list of devices brought up afterwards (#97030,#91399)"), ensuring that GRE and IPIP tunnels are brought up after base interfaces are up, and bring down before the underlying interface goes down. Signed-off-by: Rodrigo Freire --- rc.d/init.d/network | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 21b75344..91afaa64 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -109,7 +109,7 @@ case "$1" in bridgeinterfaces="$bridgeinterfaces $i" continue fi - if [ "$TYPE" = "IPSEC" ]; then + if [ "$TYPE" = "IPSEC" ] || [ "$TYPE" = "IPIP" ] || [ "$TYPE" = "GRE" ]; then vpninterfaces="$vpninterfaces $i" continue fi @@ -189,7 +189,7 @@ case "$1" in vpninterfaces="$vpninterfaces $i" continue fi - if [ "$TYPE" = "IPSEC" ]; then + if [ "$TYPE" = "IPSEC" ] || [ "$TYPE" = "IPIP" ] || [ "$TYPE" = "GRE" ]; then vpninterfaces="$vpninterfaces $i" continue fi -- cgit v1.2.1