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 f80fb5e..428c42f 100644 (file)
                                                '<img src="<%=resource%>/icons/%s%s.png" style="width:16px; height:16px" />' +
                                                '<br /><small>%s</small>',
                                                        ifc.type, ifc.is_up ? '' : '_disabled',
                                                '<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');
                                        );
 
                                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)
                                        {
                                {
                                        if (ifc.is_up)
                                        {