2019-05-27 18:04:36 +00:00
|
|
|
##
|
|
|
|
# Reset the target machine via executing external command
|
|
|
|
#
|
|
|
|
# \param --power-on-command-cmd external command
|
|
|
|
# \param --power-on-command-param command parameter (allows to specify device)
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
proc power_on_command_cmd { } {
|
|
|
|
return [get_cmd_arg_first --power-on-command-cmd 1]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-03-20 22:13:28 +00:00
|
|
|
proc power_on_command_params { } {
|
|
|
|
return [get_cmd_arg --power-on-command-param 1]
|
2019-05-27 18:04:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
proc run_power_on { } {
|
|
|
|
set command [power_on_command_cmd]
|
2020-03-20 22:13:28 +00:00
|
|
|
set params [power_on_command_params]
|
2019-05-27 18:04:36 +00:00
|
|
|
|
2020-03-20 22:13:28 +00:00
|
|
|
exec $command {*}$params
|
2019-05-27 18:04:36 +00:00
|
|
|
|
|
|
|
return true
|
|
|
|
}
|