summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-19 15:59:04 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:22 +1100
commitb406c38d03dade199ab575ea5992c26a5806a8bd (patch)
treea8b5a324b51e00a24bc2ef91d6a19dbcaddce94b
parent0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d (diff)
downloadpetitboot-b406c38d03dade199ab575ea5992c26a5806a8bd.zip
petitboot-b406c38d03dade199ab575ea5992c26a5806a8bd.tar.gz
ui/ncurses: Display IP address in nc-sysinfov1.4.0
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--ui/ncurses/nc-sysinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c
index ce8957c..8252b45 100644
--- a/ui/ncurses/nc-sysinfo.c
+++ b/ui/ncurses/nc-sysinfo.c
@@ -129,10 +129,11 @@ 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"));
/* 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);
}
OpenPOWER on IntegriCloud