Sheng Yang 49709d716a 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.
2011-08-05 16:40:35 -07:00

10 lines
183 B
Plaintext

#!/bin/bash
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