summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-06-02 09:07:26 -0400
committerjim-p <jimp@pfsense.org>2011-06-02 09:07:26 -0400
commit0640a65b13e6bb4d262730b9a3cc8d225e16094a (patch)
treef803bca1ecdea5df29bee3f45ed80d4013b2973e /usr/local/www/interfaces.php
parent3781d8099c40be8cf61e210c7fcc77fcb16e0115 (diff)
downloadpfsense-0640a65b13e6bb4d262730b9a3cc8d225e16094a.zip
pfsense-0640a65b13e6bb4d262730b9a3cc8d225e16094a.tar.gz
Add "Default" choice that will unset the media/mediaopt, otherwise whatever is first in the list is saved in the config.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index b3e7b0a..fc905b4 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -1192,6 +1192,7 @@ $types = array("none" => gettext("None"), "static" => gettext("Static"), "dhcp"
if ($mediaopt_from_config == 'autoselect ' || $mediaopt_from_config == ' ') echo "style='display:none'>";
else echo '>';
echo '<select name="mediaopt" class="formselect" id="mediaopt">';
+ print "<option value=\"\">Default</option>";
foreach($mediaopts_list as $mediaopt){
if ($mediaopt != rtrim($mediaopt_from_config)){
print "<option value=\"$mediaopt\">" . gettext("$mediaopt") . "</option>";
OpenPOWER on IntegriCloud