mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
change sleep type
This commit is contained in:
@ -67,8 +67,8 @@ check:rc==0
|
||||
cmd:if [[ "__GETNODEATTR($$SN,arch)__" =~ "ppc64" ]]; then rnetboot $$SN;elif [[ "__GETNODEATTR($$SN,arch)__" =~ "x86_64" ]];then rpower $$SN boot; fi
|
||||
check:rc==0
|
||||
|
||||
cmd:sleep 1800
|
||||
cmd:a=0;while ! `lsdef -l $$SN|grep status|grep booted >/dev/null`; do sleep 10;((a++));if [ $a -gt 400 ];then break;fi done
|
||||
cmd:sleep 600
|
||||
cmd:a=0;while ! `lsdef -l $$SN|grep status|grep booted >/dev/null`; do sleep 60;((a++));if [ $a -gt 70 ];then break;fi done
|
||||
|
||||
cmd:ping $$SN -c 3
|
||||
check:rc==0
|
||||
|
Reference in New Issue
Block a user