summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-26 20:05:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-26 20:05:24 +0000
commit1c44a77db88864557b2fea0061771dea8c107cce (patch)
treeec46b5ff13dfe65d4479136400ecbf6b8703f2cf /etc/rc
parentc4e3f59fcd363717be4d953d49f1e57f2753eb0d (diff)
downloadpfsense-1c44a77db88864557b2fea0061771dea8c107cce.zip
pfsense-1c44a77db88864557b2fea0061771dea8c107cce.tar.gz
Output welcome message after various items are mounted (so we have grep)
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc23
1 files changed, 12 insertions, 11 deletions
diff --git a/etc/rc b/etc/rc
index 8fea992..0a25c4c 100755
--- a/etc/rc
+++ b/etc/rc
@@ -15,23 +15,15 @@
#trap : 2
#trap : 3
-# Set our operating platform
-PLATFORM=`cat /etc/platform`
-
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
export HOME PATH
+# Set our operating platform
+PLATFORM=`cat /etc/platform`
+
# Set our current version
version=`cat /etc/version`
-product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4`
-
-echo
-cat /etc/ascii-art/pfsense-logo-small.txt
-echo
-echo
-echo "Welcome to ${product} ${version} on the '${PLATFORM}' platform..."
-echo
if [ "$PLATFORM" = "cdrom" ]; then
/etc/rc.cdrom
@@ -45,6 +37,15 @@ if [ "$PLATFORM" = "pfSense" ]; then
mdmfs -S -M -s 2m md /var/run
fi
+product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4`
+
+echo
+cat /etc/ascii-art/pfsense-logo-small.txt
+echo
+echo
+echo "Welcome to ${product} ${version} on the '${PLATFORM}' platform..."
+echo
+
# Enable console output if its muted.
/sbin/conscontrol mute off >/dev/null
OpenPOWER on IntegriCloud