mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-06 18:48:35 +00:00
tool/run: run external command plugin for power_on subsystem
Fixes #3385
This commit is contained in:
parent
a3e43aca87
commit
b57a4c98cf
26
tool/run/power_on/command
Normal file
26
tool/run/power_on/command
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
##
|
||||||
|
# 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]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc power_on_command_param { } {
|
||||||
|
return [get_cmd_arg_first --power-on-command-param 1]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc run_power_on { } {
|
||||||
|
set command [power_on_command_cmd]
|
||||||
|
set param [power_on_command_param]
|
||||||
|
|
||||||
|
exec $command $param
|
||||||
|
|
||||||
|
return true
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user