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.
This commit is contained in:
Sheng Yang 2011-08-05 16:39:27 -07:00
parent 9f94a178d6
commit 49709d716a

View File

@ -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