Author: nwhitehorn
Date: Sat Mar  3 02:13:53 2012
New Revision: 232427
URL: http://svn.freebsd.org/changeset/base/232427

Log:
  MFC r230482-230484,r230997:
  
  Per popular demand, if installing from a graphics terminal, show the
  installer log in real time on VTY 3, and spawn a shell on VTY 4.
  
  PR:           bin/161048

Modified:
  stable/9/release/rc.local
Directory Properties:
  stable/9/release/   (props changed)

Modified: stable/9/release/rc.local
==============================================================================
--- stable/9/release/rc.local   Sat Mar  3 01:33:10 2012        (r232426)
+++ stable/9/release/rc.local   Sat Mar  3 02:13:53 2012        (r232427)
@@ -12,12 +12,21 @@ MACHINE=`uname -m`
 
 kbdcontrol -d >/dev/null 2>&1
 if [ $? -eq 0 ]; then
-       # Syscons: use xterm
+       # Syscons: use xterm, start interesting things on other VTYs
        if [ ${MACHINE} = "pc98" ]; then
                TERM=cons25w
        else
                TERM=xterm
        fi
+
+       if [ -z "$EXTERNAL_VTY_STARTED" ]; then
+               # 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
+       fi
 else
        # Serial or other console
        echo
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to