Fix ping in cloud-early-config

The old ping don't have -w option
This commit is contained in:
Sheng Yang 2011-08-12 13:46:07 -07:00
parent cc60989a68
commit 11dfba635c
1 changed files with 6 additions and 2 deletions

View File

@ -250,10 +250,14 @@ setup_common() {
fi
# a hacking way to activate vSwitch under VMware
ping -n -c 3 -w 5 $GW
ping -n -c 3 $GW &
sleep 3
pkill ping
if [ -n "$MGMTNET" -a -n "$LOCAL_GW" ]
then
ping -n -c 3 -w 5 $LOCAL_GW
ping -n -c 3 $LOCAL_GW &
sleep 3
pkill ping
fi
}