summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-19 23:00:53 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-19 23:00:53 -0400
commita469927d168996a6780c17c9cd8132c0077d62dd (patch)
tree88a3015fe5d5b1b0b64082f97b74b261395c2744 /usr
parent92b88c1a0dcb62da6b147ce855634f0bfee3cbe6 (diff)
downloadpfsense-a469927d168996a6780c17c9cd8132c0077d62dd.zip
pfsense-a469927d168996a6780c17c9cd8132c0077d62dd.tar.gz
Handle PPP interfaces
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index fe841dc..c5db181 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -178,6 +178,10 @@ if ($wancfg['ipaddr'] == "dhcp") {
} else
$pconfig['type'] = "none";
+// Handle PPP type interfaces
+if($wancfg['serialport'])
+ $pconfig['type'] = "none";
+
$pconfig['blockpriv'] = isset($wancfg['blockpriv']);
$pconfig['blockbogons'] = isset($wancfg['blockbogons']);
$pconfig['spoofmac'] = $wancfg['spoofmac'];
@@ -768,6 +772,9 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
<br><span class="vexpl">Enter a description (name) for the interface here.</span>
</td>
</tr>
+ <?
+ if(!$wancfg['serialport']):
+ ?>
<tr>
<td valign="middle" class="vncell"><strong>Type</strong></td>
<td class="vtable">
@@ -784,6 +791,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe"
</select>
</td>
</tr>
+ <?php endif; ?>
<tr>
<td valign="top" class="vncell">MAC address</td>
<td class="vtable">
OpenPOWER on IntegriCloud