From 258a1bc451cfbaf93bb45b79a174c71d6ea8c9bb Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Thu, 11 Aug 2011 14:59:51 -0700 Subject: [PATCH] Ifdown may not bring interface down if ifup not run Use ifconfig to bring it down --- .../debian/config/root/redundant_router/disable_pubip.sh | 1 + .../debian/config/root/redundant_router/enable_pubip.sh.templ | 1 + 2 files changed, 2 insertions(+) diff --git a/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh b/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh index f59eea9ef23..349ddef14ea 100644 --- a/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh +++ b/patches/systemvm/debian/config/root/redundant_router/disable_pubip.sh @@ -1,4 +1,5 @@ #!/bin/bash ifdown eth2 +ifconfig eth2 down service dnsmasq stop diff --git a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ index 5d96b018327..ac8b0e0ea85 100644 --- a/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ +++ b/patches/systemvm/debian/config/root/redundant_router/enable_pubip.sh.templ @@ -1,6 +1,7 @@ #!/bin/bash ifdown eth2 && \ +ifconfig eth2 down && \ ifconfig eth2 hw ether [ETH2MAC] && \ ifup eth2 && \ ip route add default via [GATEWAY] dev eth2 && \