From 49709d716a9a6acd3f571b34852f9c8869d0431a Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Fri, 5 Aug 2011 16:39:27 -0700 Subject: [PATCH] Try to workaround "ip route add" fail in redundant router It's probably due to the network is not ready, so wait some time for it. --- .../debian/config/root/redundant_router/enable_pubip.sh.templ | 2 ++ 1 file changed, 2 insertions(+) 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 93539422753..045eac7d731 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 @@ -3,5 +3,7 @@ ifconfig eth2 down && \ ifconfig eth2 hw ether [ETH2MAC] && \ ifconfig eth2 up && \ +sleep 3 && \ ip route add 0/0 via [GATEWAY] && \ +sleep 3 && \ service dnsmasq restart