summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2008-09-07 01:17:54 +0000
committerBill Marquette <billm@pfsense.org>2008-09-07 01:17:54 +0000
commitac6ddeffe1d6bbea8c732155c910c02012e174ed (patch)
tree5ddca2b95d9a9dbc3e7471d2ce9d43dba226518f /etc/rc.initial.setlanip
parentb980f9e485274af74498145541e13abd107a72a8 (diff)
downloadpfsense-ac6ddeffe1d6bbea8c732155c910c02012e174ed.zip
pfsense-ac6ddeffe1d6bbea8c732155c910c02012e174ed.tar.gz
fix debug code that never worked and make it disabled by default
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-xetc/rc.initial.setlanip6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 91cbf06..005a641 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -218,8 +218,10 @@
echo "\n\n" . gettext("The IPv4 {$upperifname} address has been set to ") . "{$intip}\n";
}
if (count($ifdescrs) == "1" or $interface = "lan") {
- echo "ifdescrs count is count($ifdescrs)\n";
- echo "interface is $interface \n";
+ if ($debug) {
+ echo "ifdescrs count is " . count($ifdescrs) . "\n";
+ echo "interface is {$interface} \n";
+ }
echo gettext('You can now access the webConfigurator by opening the following URL in your web browser:') . "\n";
if(!empty($config['system']['webgui']['port'])) {
$webuiport = $config['system']['webgui']['port'];
OpenPOWER on IntegriCloud