modules/admin-full: fix status reporting of inactive virtual interfaces
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 9 Oct 2011 22:36:13 +0000 (22:36 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 9 Oct 2011 22:36:13 +0000 (22:36 +0000)
modules/admin-full/luasrc/view/admin_network/iface_status.htm

index f80fb5e53711747525ccf282c050baaebbe1f2d0..428c42fec9ede44925210d848695ac7f6de43cc0 100644 (file)
                                                '<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
                                                '<br /><small>%s</small>',
                                                        ifc.type, ifc.is_up ? '' : '_disabled',
-                                                       ifc.is_up ? ifc.ifname : '?'
+                                                       ifc.name
                                        );
 
                                var d = document.getElementById('<%=self.option%>-ifc-description');
-                               if (d && ifc.ifname && ifc.macaddr != '00:00:00:00:00:00')
+                               if (d && ifc.ifname)
                                {
                                        if (ifc.is_up)
                                        {