mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
539e5212ab
The run plugin is not generic and works for NETIO4/NETIO230 powerplugs only. Further, this opens the path for other vendor-specific powerplug plugins. Note, the plugin parameter for the addressed powerplug was renamed to --power-on-netio-host resp. --power-off-netio-host
10 lines
265 B
PHP
10 lines
265 B
PHP
proc power_netio_connect { host user_name password } {
|
|
spawn telnet $host 1234
|
|
set connection_id $spawn_id
|
|
expect -i $connection_id "KSHELL V1.*"
|
|
send -i $connection_id "login $user_name $password\n"
|
|
expect -i $connection_id "250 OK"
|
|
|
|
return $connection_id
|
|
}
|