diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2012-07-02 11:19:56 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2012-07-02 11:45:09 -0600 |
commit | 7852ce9b613eaba507bcac61dfac635572f75bad (patch) | |
tree | df8f75f5ecedd6bd843d090bd7bf910267303a0e | |
parent | e0a45ce03c033d40afbcd9a64b16dc686a000465 (diff) | |
download | pfsense-7852ce9b613eaba507bcac61dfac635572f75bad.zip pfsense-7852ce9b613eaba507bcac61dfac635572f75bad.tar.gz |
Display different message and do not display message about interfaces that do not exist if this is the default configuration.
-rwxr-xr-x | etc/rc.bootup | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index 3f5a1f4..c21a4d5 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -190,9 +190,12 @@ if($g['platform'] == "jail") { */ while(is_interface_mismatch() == true) { led_assigninterfaces(); - if (file_exists("{$g['tmp_path']}/missing_interfaces")) - echo "Warning: Configuration references interfaces that do not exist: " . file_get_contents("{$g['tmp_path']}/missing_interfaces") . "\n"; - echo "\nNetwork interface mismatch -- Running interface assignment option.\n"; + if (isset($config['revision'])) { + if (file_exists("{$g['tmp_path']}/missing_interfaces")) + echo "Warning: Configuration references interfaces that do not exist: " . file_get_contents("{$g['tmp_path']}/missing_interfaces") . "\n"; + echo "\nNetwork interface mismatch -- Running interface assignment option.\n"; + } else + echo "\nDefault interfaces not found -- Running interface assignment option.\n"; $ifaces = get_interface_list(); if (is_array($ifaces)) { foreach($ifaces as $iface => $ifdata) |