diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-10 03:57:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-10 03:57:49 +0000 |
commit | 8112c6a972a4f85bcc0f0cb85587389a74329b7e (patch) | |
tree | 8414523d8782ee8fb88fc3e6e3deed850105a8a7 /etc/rc | |
parent | 1325678b4cca25bddcc10596bd0767fe399ba691 (diff) | |
download | pfsense-8112c6a972a4f85bcc0f0cb85587389a74329b7e.zip pfsense-8112c6a972a4f85bcc0f0cb85587389a74329b7e.tar.gz |
Take into account embedded platforms
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -205,15 +205,23 @@ rm -rf /usr/local/pkg/pf/CVS /usr/local/sbin/check_reload_status >/dev/null & echo "Bootup complete" - -if [ ! -e /var/etc/console_lockdown ]; then - # Allow VTY switching - /usr/sbin/vidcontrol -S on - # Turn off bloody mouse pointer. - /usr/sbin/vidcontrol -m off - env TERM=cons25 /etc/rc.initial 2>/dev/ttyv1 </dev/ttyv1 >/dev/ttyv1 & - sleep 1 - /usr/sbin/vidcontrol -s 2 +if [ ! "$PLATFORM" = "cdrom" ]; then + if [ ! -e /var/etc/console_lockdown ]; then + # Allow VTY switching + /usr/sbin/vidcontrol -S on + # Turn off bloody mouse pointer. + /usr/sbin/vidcontrol -m off + env TERM=cons25 /etc/rc.initial 2>/dev/ttyv1 </dev/ttyv1 >/dev/ttyv1 & + sleep 1 + /usr/sbin/vidcontrol -s 2 + fi +else + if [ ! -e /var/etc/console_lockdown ]; then + while [ 1 ]; + do + env TERM=cons25 /etc/rc.initial + done + fi fi /usr/local/bin/beep.sh start |