mirror of
https://github.com/fspc/gbootroot.git
synced 2025-04-04 07:43:22 -04:00
Added halt and reboot to the mconsole interface as well as a convenience ..
buttons can be used as well.
This commit is contained in:
parent
a53e4770cc
commit
8d0a1f08a8
@ -1350,6 +1350,7 @@ sub uml_box {
|
|||||||
$tooltips->set_tip( $eab4,
|
$tooltips->set_tip( $eab4,
|
||||||
"Pass commands to the mconsole.\n" .
|
"Pass commands to the mconsole.\n" .
|
||||||
"sysrq [0-9|b|e|i|l|m|p|r|s|t|u] " .
|
"sysrq [0-9|b|e|i|l|m|p|r|s|t|u] " .
|
||||||
|
" reboot halt " .
|
||||||
" config <dev>=<config> remove <dev> " .
|
" config <dev>=<config> remove <dev> " .
|
||||||
" switch <umid> version help",
|
" switch <umid> version help",
|
||||||
"" );
|
"" );
|
||||||
@ -1383,6 +1384,7 @@ sub uml_box {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# version
|
# version
|
||||||
if ( $entry_advanced[14] &&
|
if ( $entry_advanced[14] &&
|
||||||
$entry_advanced[14] =~ m,version, ) {
|
$entry_advanced[14] =~ m,version, ) {
|
||||||
@ -1403,6 +1405,45 @@ sub uml_box {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# reboot
|
||||||
|
if ( $entry_advanced[14] &&
|
||||||
|
$entry_advanced[14] =~ m,reboot, ) {
|
||||||
|
for my $co (0 .. $#command_parts ) {
|
||||||
|
if ( $command_parts[$co] eq
|
||||||
|
"reboot"
|
||||||
|
)
|
||||||
|
{
|
||||||
|
system
|
||||||
|
"uml_mconsole " .
|
||||||
|
"/tmp/uml/$umid/mconsole" .
|
||||||
|
" reboot&";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# halt
|
||||||
|
if ( $entry_advanced[14] &&
|
||||||
|
$entry_advanced[14] =~ m,halt, ) {
|
||||||
|
for my $co (0 .. $#command_parts ) {
|
||||||
|
if ( $command_parts[$co] eq
|
||||||
|
"halt"
|
||||||
|
)
|
||||||
|
{
|
||||||
|
system
|
||||||
|
"uml_mconsole " .
|
||||||
|
"/tmp/uml/$umid/mconsole" .
|
||||||
|
" halt&";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
# sysrq
|
# sysrq
|
||||||
if ( $entry_advanced[14] &&
|
if ( $entry_advanced[14] &&
|
||||||
$entry_advanced[14] =~ m,sysrq, ) {
|
$entry_advanced[14] =~ m,sysrq, ) {
|
||||||
@ -1413,7 +1454,7 @@ sub uml_box {
|
|||||||
{
|
{
|
||||||
if ( !$command_parts[$co + 1] ||
|
if ( !$command_parts[$co + 1] ||
|
||||||
$command_parts[$co + 1] =~
|
$command_parts[$co + 1] =~
|
||||||
m,^[0-9]{n}$ | ^b$ | ^e$ | ^i$ | ^l$ |
|
m,^[0-9]{1}$ | ^b$ | ^e$ | ^i$ | ^l$ |
|
||||||
^m$ | ^p$ | ^r$ | ^s$ | ^t$ | ^u$,x ) {
|
^m$ | ^p$ | ^r$ | ^s$ | ^t$ | ^u$,x ) {
|
||||||
system
|
system
|
||||||
"uml_mconsole " .
|
"uml_mconsole " .
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E"
|
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E"
|
||||||
alink="#FF0000">
|
alink="#FF0000">
|
||||||
|
|
||||||
<center>$Id: index.html,v 1.56 2001/12/23 18:05:22 freesource Exp $</center>
|
<center>$Id: index.html,v 1.57 2001/12/23 20:28:00 freesource Exp $</center>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
@ -257,8 +257,10 @@ with the umid value. Good information about sysrq is found in
|
|||||||
Documentation/sysrq.txt in the Linux sources.
|
Documentation/sysrq.txt in the Linux sources.
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
sysrq (Shows option values in virtual machine.)
|
sysrq (Shows sysrq option values in virtual machine.)
|
||||||
sysrq [0-9|b|e|i|l|m|p|r|s|t|u]
|
sysrq [0-9|b|e|i|l|m|p|r|s|t|u]
|
||||||
|
reboot
|
||||||
|
halt
|
||||||
config <dev>=<config>
|
config <dev>=<config>
|
||||||
remove <dev>
|
remove <dev>
|
||||||
switch <umid>
|
switch <umid>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user