Browse Source

Added halt and reboot to the mconsole interface as well as a convenience ..

buttons can be used as well.
master
freesource 23 years ago
parent
commit
8d0a1f08a8
  1. 45
      BootRoot/BootRoot.pm
  2. 6
      doc/html/index.html

45
BootRoot/BootRoot.pm

@ -1350,6 +1350,7 @@ sub uml_box {
$tooltips->set_tip( $eab4,
"Pass commands to the mconsole.\n" .
"sysrq [0-9|b|e|i|l|m|p|r|s|t|u] " .
" reboot halt " .
" config <dev>=<config> remove <dev> " .
" switch <umid> version help",
"" );
@ -1381,8 +1382,9 @@ sub uml_box {
}
}
# version
if ( $entry_advanced[14] &&
$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
if ( $entry_advanced[14] &&
$entry_advanced[14] =~ m,sysrq, ) {
@ -1413,7 +1454,7 @@ sub uml_box {
{
if ( !$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 ) {
system
"uml_mconsole " .

6
doc/html/index.html

@ -3,7 +3,7 @@
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E"
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>
@ -257,8 +257,10 @@ with the umid value.&nbsp;&nbsp;Good information about sysrq is found in
Documentation/sysrq.txt in the Linux sources.
<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]
reboot
halt
config &lt;dev&gt;=&lt;config&gt;
remove &lt;dev&gt;
switch &lt;umid&gt;

Loading…
Cancel
Save