diff options
author | jim-p <jimp@pfsense.org> | 2015-11-23 11:19:59 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-11-23 11:20:12 -0500 |
commit | 97d419450890023e78e4c5c1514ed6f965af6b6f (patch) | |
tree | 9a5fbeab6ab090e3c6de0386185ec29851258ff3 /src/usr/local/www/widgets | |
parent | 0a75e428d9e1bb7655ff74c6de89a858e423fdea (diff) | |
download | pfsense-97d419450890023e78e4c5c1514ed6f965af6b6f.zip pfsense-97d419450890023e78e4c5c1514ed6f965af6b6f.tar.gz |
Interface widget icon adjustments
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/interfaces.widget.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/usr/local/www/widgets/widgets/interfaces.widget.php b/src/usr/local/www/widgets/widgets/interfaces.widget.php index 6bd2703..586604c 100644 --- a/src/usr/local/www/widgets/widgets/interfaces.widget.php +++ b/src/usr/local/www/widgets/widgets/interfaces.widget.php @@ -68,13 +68,18 @@ $ifdescrs = get_configured_interface_with_descr(); <?php foreach ($ifdescrs as $ifdescr => $ifname): $ifinfo = get_interface_info($ifdescr); - - if ($ifinfo['ppplink']) { - $typeicon = 'cloud'; - } else if (is_interface_wireless($ifdescr)) { + if ($ifinfo['pppoelink'] || $ifinfo['pptplink'] || $ifinfo['l2tplink']) { + /* PPP link (non-cell) - looks like a modem */ + $typeicon = 'hdd-o'; + } else if ($ifinfo['ppplink']) { + /* PPP Link (usually cellular) */ $typeicon = 'signal'; + } else if (is_interface_wireless($ifdescr)) { + /* Wi-Fi interface (hostap/client/etc) */ + $typeicon = 'wifi'; } else { - $typeicon = 'inbox'; + /* Wired/other interface. */ + $typeicon = 'sitemap'; } $known_status = true; |