diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-07-01 13:37:42 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-07-01 13:37:42 -0300 |
commit | edb4b65732d76810e5610bcece85571f13969fc0 (patch) | |
tree | 82477daac59a01793850182a401fb8d9899e4fa8 /etc/rc.bootup | |
parent | 6f9a191d76aa837d727fe047c67aae5829fede16 (diff) | |
download | pfsense-edb4b65732d76810e5610bcece85571f13969fc0.zip pfsense-edb4b65732d76810e5610bcece85571f13969fc0.tar.gz |
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
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-x | etc/rc.bootup | 12 |
1 files changed, 6 insertions, 6 deletions
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(); |