run: configurable AMT power-on timeout

The default timeout is 5 seconds and can be changed like follows.

  RUN_OPT += --power-on-amt-timeout 11
This commit is contained in:
Christian Helmuth 2018-08-20 11:48:22 +02:00
parent e0a97d5642
commit 240e70d989

View File

@ -18,6 +18,11 @@ proc power_on_amt_password { } {
}
proc power_on_amt_timeout { } {
return [get_cmd_arg_first --power-on-amt-timeout 5]
}
##
# Reset via Intel AMT (works up to version smaller Intel AMT 9)
#
@ -126,6 +131,8 @@ proc run_power_on { } {
}
}
sleep 5
puts "wait [power_on_amt_timeout] seconds for power on"
sleep [power_on_amt_timeout]
return true
}