diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-23 15:44:52 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2012-01-23 15:44:52 +0000 |
commit | ebe4f7c32da597e8830edd2cdd314aaf17db5595 (patch) | |
tree | b9398b9ecba58db2d87f4519abd4b6b8e63ad8ee /release | |
parent | d5bb5249b28f8b367e607754ee57bb2949cff37d (diff) | |
download | FreeBSD-src-ebe4f7c32da597e8830edd2cdd314aaf17db5595.zip FreeBSD-src-ebe4f7c32da597e8830edd2cdd314aaf17db5595.tar.gz |
Per popular demand, if installing from a graphics terminal, run the
installer on a VTY with no kernel messages (VTY 2), show the installer
log in real time on VTY 3, and spawn a shell on VTY 4.
PR: bin/161047, bin/161048
MFC after: 2 weeks
Diffstat (limited to 'release')
-rwxr-xr-x | release/rc.local | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/release/rc.local b/release/rc.local index 1816f38..18182c4 100755 --- a/release/rc.local +++ b/release/rc.local @@ -10,8 +10,19 @@ kbdcontrol -d >/dev/null 2>&1 if [ $? -eq 0 ]; then - # Syscons: use xterm + # Syscons: use xterm, start interesting things on other VTYs TERM=xterm + + if [ "$EXTERNAL_VTY_STARTED" -ne 1 ]; then + vidcontrol -s 2 # Switch to a VTY with no kernel messages + # Init will clean these processes up if/when the system + # goes multiuser + touch /tmp/bsdinstall_log + tail -f /tmp/bsdinstall_log > /dev/ttyv2 & + /usr/libexec/getty autologin ttyv3 + EXTERNAL_VTY_STARTED=1 + trap "vidcontrol -s 1" EXIT + fi else # Serial or other console echo |