diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-12 04:36:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-12 04:36:50 +0000 |
commit | 2c35ed9143fccafdd94628b68139376551178d47 (patch) | |
tree | 5a6f3025b2f91a0a8dbe62f931c6c2bc59d9c8d7 /etc/rc.bootup | |
parent | 22d0b8e5cd3dc3979e48ee0be1a957a272c43d33 (diff) | |
download | pfsense-2c35ed9143fccafdd94628b68139376551178d47.zip pfsense-2c35ed9143fccafdd94628b68139376551178d47.tar.gz |
Only echo motd if platform is cdrom
Diffstat (limited to 'etc/rc.bootup')
-rwxr-xr-x | etc/rc.bootup | 6 |
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"); |