summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-21 00:46:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-21 00:46:38 +0000
commit44cca5eefe7a209585cc655a39005136cb124222 (patch)
tree49323bb47cae65a8e3436a38afe61b3742d968c1 /etc
parent3aed792b1a03bc97c2da80bbfdaa96ea702f493d (diff)
downloadpfsense-44cca5eefe7a209585cc655a39005136cb124222.zip
pfsense-44cca5eefe7a209585cc655a39005136cb124222.tar.gz
When assigning interfaces if a previous description is found for a optiona interface, show a blurb of the info above the line.
Example. In this case the optiona description name was WIRELESS Optional interface 1 description found: WIRELESS Enter the Optional 1 interface name or 'a' for auto-detection (or nothing if finished):
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 1e57957..e2fdab7 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1091,8 +1091,13 @@ EOD;
if ($optif[$i])
$i++;
$i1 = $i + 1;
+
+ if($config['interfaces']['opt' . $i1]['descr'])
+ echo "\nOptional interface {$i1} description found: {$config['interfaces']['opt' . $i1]['descr']}";
+
echo "\nEnter the Optional {$i1} interface name or 'a' for auto-detection\n" .
"(or nothing if finished): ";
+
$optif[$i] = chop(fgets($fp));
if ($optif[$i]) {
OpenPOWER on IntegriCloud