summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-04-18 15:35:04 -0400
committerChris Buechler <cmb@pfsense.org>2009-04-18 15:35:04 -0400
commit1b7700c124f6e663aadec0402b0fa4f8020c5cd0 (patch)
tree33b1bd9b7b9ad699d978de98fa9c8feb9a86e250 /etc
parentbd1072b54eda6c3e64c76033e4b01f49d6648e85 (diff)
downloadpfsense-1b7700c124f6e663aadec0402b0fa4f8020c5cd0.zip
pfsense-1b7700c124f6e663aadec0402b0fa4f8020c5cd0.tar.gz
touch up text, prevent "The second argument should be array or object" error when there are no interfaces detected.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index c3cef03..28b256d 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -795,8 +795,8 @@ function set_networking_interfaces_ports() {
if($avail < $g['minimum_ram_warning']) {
echo "\n\n\n";
echo "DANGER! WARNING! ACHTUNG!\n\n";
- echo "{$g['product_name']} requires *AT LEAST* {$g['minimum_ram_warning_text']} ram to function correctly.\n";
- echo "Only ({$avail}) megs of ram has been detected.\n";
+ echo "{$g['product_name']} requires *AT LEAST* {$g['minimum_ram_warning_text']} RAM to function correctly.\n";
+ echo "Only ({$avail}) MB RAM has been detected.\n";
echo "\nPress ENTER to continue. ";
fgets($fp);
echo "\n";
@@ -813,6 +813,7 @@ EOD;
if(!is_array($iflist)) {
echo "No interfaces found!\n";
+ $iflist = array();
} else {
foreach ($iflist as $iface => $ifa) {
echo sprintf("% -8s%s%s\t%s\n", $iface, $ifa['mac'],
OpenPOWER on IntegriCloud