From 0df15e32bfbf8c6bb71fbecd7691acbf8f615ff5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 8 Oct 2005 18:33:38 +0000 Subject: [PATCH] Work around a FreeBSD usb keyboard bug (multiple keyboard mux) by spawning a menu on the 2nd vty allowing the user to ALT-F2 to the menu on usb keyboards. Yes this is ugly. But at the moment this is all we can do. --- etc/rc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/etc/rc b/etc/rc index 32c245fbd1..2d52bdbb8a 100755 --- a/etc/rc +++ b/etc/rc @@ -209,4 +209,17 @@ rm -rf /usr/local/pkg/pf/CVS echo "Bootup complete" +if [ -e /dev/ukbd0 ]; then + echo + echo "Working around a USB Keyboard bug in FreeBSD" + echo + echo "Bringing up the menu on ALT-F2 vty console..." + echo + echo "Press ALT + F2 to switch to the pfSense menu." + echo + /etc/rc.initial 2>/dev/ttyv1 /dev/ttyv1 + sleep 1 + /usr/sbin/vidcontrol -s 1 +fi + exit 0