From edb4b65732d76810e5610bcece85571f13969fc0 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 1 Jul 2014 13:37:42 -0300 Subject: Fix #3647 and other improvements: - Remove auto_login(), now gettytab is a constant file - Add reload_ttys(), that will send a SIGHUP to init and make it reload /etc/ttys - Change serial speed on /etc/ttys when necessary - Change console and serial auto_login on /etc/ttys when necessary - Change default type from cons25 to xterm --- etc/rc.bootup | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'etc/rc.bootup') diff --git a/etc/rc.bootup b/etc/rc.bootup index 612ff22..265effb 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -61,19 +61,19 @@ function rescue_detect_keypress() { } // If R or I was pressed do our logic here if (in_array($key, array("r", "R"))) { - putenv("TERM=cons25"); + putenv("TERM=xterm"); echo "\n\nRecovery mode selected...\n"; - passthru("/usr/bin/env TERM=cons25 /bin/tcsh -c /scripts/lua_installer_rescue"); + passthru("/usr/bin/env TERM=xterm /bin/tcsh -c /scripts/lua_installer_rescue"); } elseif (in_array($key, array("i", "I"))) { - putenv("TERM=cons25"); + putenv("TERM=xterm"); echo "\n\nInstaller mode selected...\n"; - passthru("/usr/bin/env TERM=cons25 /bin/tcsh -c /scripts/lua_installer"); + passthru("/usr/bin/env TERM=xterm /bin/tcsh -c /scripts/lua_installer"); if(file_exists("/tmp/install_complete")) { passthru("/etc/rc.reboot"); exit; } } elseif (in_array($key, array("!", "~"))) { - putenv("TERM=cons25"); + putenv("TERM=xterm"); echo "\n\nRecovery shell selected...\n"; echo "\n"; touch("/tmp/donotbootup"); @@ -375,7 +375,7 @@ services_snmpd_configure(); system_set_harddisk_standby(); /* lock down console if necessary */ -auto_login(); +reload_ttys(); /* load graphing functions */ enable_rrd_graphing(); -- cgit v1.1