mirror of
https://github.com/fspc/gbootroot.git
synced 2025-03-12 07:43:22 -04:00
Had to add more changes to expect_uml and UML so that there will be an
established PATH, and so that uml_mconsole's system command won't be issued until the last line is actually come to via a new method. Nothing can ever be too simple.
This commit is contained in:
parent
e9030a5ecc
commit
41e126df67
@ -95,8 +95,8 @@ sub boot {
|
|||||||
|
|
||||||
|
|
||||||
$me->{expect_handle}->expect(undef, "-re", "$me->{prompt}");
|
$me->{expect_handle}->expect(undef, "-re", "$me->{prompt}");
|
||||||
$me->{expect_handle}->print("echo Let's make you're root_fs!\r");
|
$me->{expect_handle}->print("echo Let's make you're root_fs!\n");
|
||||||
$me->{expect_handle}->print("\r");
|
$me->{expect_handle}->expect(undef, "-re", "root_fs");
|
||||||
|
|
||||||
return($log);
|
return($log);
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@ sub command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# adding an \r handles some buggy expectations
|
# adding an \r handles some buggy expectations
|
||||||
$me->{expect_handle}->print("$cmd\r\n");
|
$me->{expect_handle}->print("$cmd\n");
|
||||||
my @match = $me->{expect_handle}->expect(undef, @expects);
|
my @match = $me->{expect_handle}->expect(undef, @expects);
|
||||||
defined $match[0] and $match[0]--;
|
defined $match[0] and $match[0]--;
|
||||||
if(defined($match[1])){
|
if(defined($match[1])){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user