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

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 14 Jul 2009, Radek Vykydal wrote:

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



Looks good.

- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkpg11wACgkQ5hsjjIy1VkmBUgCdELOv4BjWbtvNdL5Q1kfxybPq
E1cAoNL10Xq4ntq1WUl1fMbBW+4Vewbt
=+Pk8
-----END PGP SIGNATURE-----

_______________________________________________
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