Revision 540bd313
Added by Scott Ullrich about 16 years ago
etc/rc.bootup | ||
---|---|---|
35 | 35 |
function rescue_detect_keypress() { |
36 | 36 |
// How long do you want the script to wait before moving on (in seconds) |
37 | 37 |
$timeout=3; |
38 |
echo "Press R to enter Recovery Mode or press I to enter installer.\n\n";
|
|
38 |
echo "Press R to enter Recovery Mode or press I to launch installer.\n\n";
|
|
39 | 39 |
echo "Recovery mode can assist by rescuing config.xml from a \n"; |
40 |
echo "installed hard disk that is having problems, etc.\n\n";
|
|
41 |
echo "The installer may be invoked now if you do\n";
|
|
42 |
echo "not wish to boot into the liveCD.\n\n" |
|
43 |
echo "Timeout (seconds): {$timeout}\n"; |
|
40 |
echo "broken hard disk installation, etc.\n\n";
|
|
41 |
echo "Alternatively the installer may be invoked now \n";
|
|
42 |
echo "if you do not wish to boot into the liveCD.\n\n"
|
|
43 |
echo "Timeout before auto boot continues (seconds): {$timeout}\n";
|
|
44 | 44 |
$key = null; |
45 | 45 |
while(!in_array($key, array("r","R"))) { |
46 | 46 |
echo "\033[08m{$timeout}\n"; |
... | ... | |
53 | 53 |
if ($timeout == 0) |
54 | 54 |
break; |
55 | 55 |
} |
56 |
// If r was pressed do our logic here
|
|
56 |
// If R or I was pressed do our logic here
|
|
57 | 57 |
if (in_array($key, array("r", "R"))) { |
58 | 58 |
system("env TERM=vt102 /scripts/lua_installer_rescue"); |
59 | 59 |
} elseif (in_array($key, array("i", "I"))) { |
Also available in: Unified diff
Cleanup my hick ky english