summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-08 18:46:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-08 18:46:43 +0000
commit28fccd7f6edd0c4d9ff965847e82ee21d93db545 (patch)
treecdab383c3dfdb955aeef421364d0b66ad4e54663
parent0df15e32bfbf8c6bb71fbecd7691acbf8f615ff5 (diff)
downloadpfsense-28fccd7f6edd0c4d9ff965847e82ee21d93db545.zip
pfsense-28fccd7f6edd0c4d9ff965847e82ee21d93db545.tar.gz
* Run the menu in the background
* switch to vty2 * turn off the ability to switch vty's locking the user into vty2 which appears as nothing ever happend Sneaky.
-rwxr-xr-xetc/rc11
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 2d52bdb..2ebd96b 100755
--- a/etc/rc
+++ b/etc/rc
@@ -210,6 +210,11 @@ rm -rf /usr/local/pkg/pf/CVS
echo "Bootup complete"
if [ -e /dev/ukbd0 ]; then
+ /usr/bin/clear
+ # Allow VTY switching
+ /usr/sbin/vidcontrol -S on
+ # Turn off bloody mouse pointer.
+ /usr/sbin/vidcontrol -m off
echo
echo "Working around a USB Keyboard bug in FreeBSD"
echo
@@ -217,9 +222,11 @@ if [ -e /dev/ukbd0 ]; then
echo
echo "Press ALT + F2 to switch to the pfSense menu."
echo
- /etc/rc.initial 2>/dev/ttyv1 </dev/ttyv1 >/dev/ttyv1
+ /etc/rc.initial 2>/dev/ttyv1 </dev/ttyv1 >/dev/ttyv1 &
sleep 1
- /usr/sbin/vidcontrol -s 1
+ /usr/sbin/vidcontrol -s 2
+ # Lock em into the menu
+ /usr/sbin/vidcontrol -S off
fi
exit 0
OpenPOWER on IntegriCloud