diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-16 02:19:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-16 02:19:02 +0000 |
commit | 5b6cc0c48c609cc79d68bf3fe3266dbde3c0b3a3 (patch) | |
tree | a0282395b02ac67b0a8c03c8286d7d653014b3c1 | |
parent | 3faf822da1b7775c331f19438063a9947c3e8ae1 (diff) | |
download | pfsense-5b6cc0c48c609cc79d68bf3fe3266dbde3c0b3a3.zip pfsense-5b6cc0c48c609cc79d68bf3fe3266dbde3c0b3a3.tar.gz |
List LAN interface if it is available.
-rwxr-xr-x | etc/rc.initial.setlanip | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index 8201c1c..8cdc3f8 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -39,6 +39,8 @@ /* build an interface collection */ $ifdescrs = array ("wan"); + if($config['interfaces']['lan']) + $ifdescrs = array ("lan"); for ($j = 1; isset ($config['interfaces']['opt' . $j]); $j++) { if(isset($config['interfaces']['opt' . $j]['enable'])) $ifdescrs['opt' . $j] = filter_get_opt_interface_descr("opt" . $j); @@ -51,7 +53,7 @@ echo "{$x} - {$iface}\n"; $x++; } - echo "Enter interface # that you would like to configure: "; + echo "\nEnter interface # that you would like to configure: "; $intnum = chop(fgets($fp)); if($intnum < 1) |