summaryrefslogtreecommitdiffstats
path: root/etc/rc.bootup
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-12 04:36:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-12 04:36:50 +0000
commit2c35ed9143fccafdd94628b68139376551178d47 (patch)
tree5a6f3025b2f91a0a8dbe62f931c6c2bc59d9c8d7 /etc/rc.bootup
parent22d0b8e5cd3dc3979e48ee0be1a957a272c43d33 (diff)
downloadpfsense-2c35ed9143fccafdd94628b68139376551178d47.zip
pfsense-2c35ed9143fccafdd94628b68139376551178d47.tar.gz
Only echo motd if platform is cdrom
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-xetc/rc.bootup6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 74ecf14..0321082 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -39,8 +39,10 @@
$g['booting'] = TRUE;
touch("{$g['varrun_path']}/booting");
- $motd = trim(return_filename_as_string("/etc/motd"));
- if(strlen($motd) > 2) echo "\n{$motd}\n\n";
+ if($g['platform'] == "cdrom") {
+ $motd = trim(return_filename_as_string("/etc/motd"));
+ if(strlen($motd) > 2) echo "\n{$motd}\n\n";
+ }
/* parse the configuration and include all functions used below */
require_once("config.inc");
OpenPOWER on IntegriCloud