diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-19 23:00:53 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-19 23:00:53 -0400 |
commit | a469927d168996a6780c17c9cd8132c0077d62dd (patch) | |
tree | 88a3015fe5d5b1b0b64082f97b74b261395c2744 /usr/local/www | |
parent | 92b88c1a0dcb62da6b147ce855634f0bfee3cbe6 (diff) | |
download | pfsense-a469927d168996a6780c17c9cd8132c0077d62dd.zip pfsense-a469927d168996a6780c17c9cd8132c0077d62dd.tar.gz |
Handle PPP interfaces
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces.php | 8 |
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"> |