mirror of https://github.com/apache/cloudstack.git
Fix ping in cloud-early-config
The old ping don't have -w option
This commit is contained in:
parent
cc60989a68
commit
11dfba635c
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue