aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Freire <rfreire@redhat.com>2016-03-05 21:07:54 -0300
committerLukas Nykryn <lnykryn@redhat.com>2016-03-08 15:45:56 +0100
commit82c97b4ac121269ecb8296d74f0e5ee27d8d81b5 (patch)
tree0ee4008b6aa474dd6aa6bb83c791fdaf4794af68
parente2613d2ea352411f2ab1e5fca82807ea3d319118 (diff)
downloadinitscripts-82c97b4ac121269ecb8296d74f0e5ee27d8d81b5.tar
initscripts-82c97b4ac121269ecb8296d74f0e5ee27d8d81b5.tar.gz
initscripts-82c97b4ac121269ecb8296d74f0e5ee27d8d81b5.tar.bz2
initscripts-82c97b4ac121269ecb8296d74f0e5ee27d8d81b5.tar.xz
initscripts-82c97b4ac121269ecb8296d74f0e5ee27d8d81b5.zip
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 <rfreire@redhat.com>
-rwxr-xr-xrc.d/init.d/network4
1 files 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