[PATCH] Show MAC address of network device in text mode too.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I came accross this by the way when working on something different.  It adds
what was done with commit 2e8dfb72c0c296f24f99512e8fb00c377417a60a (#504216)
for GUI to text ui. Althoug BZ suggests that it was already present in text ui,
looking into code doesn't (I have no rawhide image to test if it is actually true).
---
 textw/netconfig_text.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/textw/netconfig_text.py b/textw/netconfig_text.py
index 8475f00..379bedd 100644
--- a/textw/netconfig_text.py
+++ b/textw/netconfig_text.py
@@ -103,9 +103,10 @@ class NetworkConfiguratorText:
         selected_interface = None
 
         for dev in devs:
-            desc = netdevs[dev].get("DESC")
-            if desc:
-                desc = "%s - %.50s" % (dev, desc)
+            hwaddr = netdevs[dev].get("HWADDR")
+
+            if hwaddr:
+                desc = "%s - %.50s" % (dev, hwaddr)
             else:
                 desc = dev
 
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux