summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-10 03:57:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-10 03:57:49 +0000
commit8112c6a972a4f85bcc0f0cb85587389a74329b7e (patch)
tree8414523d8782ee8fb88fc3e6e3deed850105a8a7 /etc/rc
parent1325678b4cca25bddcc10596bd0767fe399ba691 (diff)
downloadpfsense-8112c6a972a4f85bcc0f0cb85587389a74329b7e.zip
pfsense-8112c6a972a4f85bcc0f0cb85587389a74329b7e.tar.gz
Take into account embedded platforms
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc26
1 files changed, 17 insertions, 9 deletions
diff --git a/etc/rc b/etc/rc
index 51b590a..845dcab 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud