]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-sysinfo.c
discover/grub2: Allow to separate the --id argument using a space char
[petitboot] / ui / ncurses / nc-sysinfo.c
index ce8957cdfe7f9dcd3aa6cbb4972c7891a721df79..756f15dac14c4cf2dcf15f18f260c5371a9a55b4 100644 (file)
@@ -129,10 +129,14 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen,
                if_info_mac_str(info, macbuf, sizeof(macbuf));
 
                line("%s:", info->name);
-               line(_(" MAC:  %s"), macbuf);
+               line(_(" MAC:        %s"), macbuf);
+               line(_(" IP Address: %s"), info->address ?: _("none"));
+               if (info->address_v6)
+                       line(_(" IPv6 Address: %s"),
+                                       info->address_v6 ?: _("none"));
                /* TRANSLATORS: these "up" / "down" strings refer to the
                 * link status for a network connection. */
-               line(_(" link: %s"), info->link ? _("up") : _("down"));
+               line(_(" link:       %s"), info->link ? _("up") : _("down"));
                line(NULL);
        }