diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-19 15:59:04 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-12-20 16:40:22 +1100 |
commit | b406c38d03dade199ab575ea5992c26a5806a8bd (patch) | |
tree | a8b5a324b51e00a24bc2ef91d6a19dbcaddce94b /ui/ncurses/nc-sysinfo.c | |
parent | 0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d (diff) | |
download | petitboot-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>
Diffstat (limited to 'ui/ncurses/nc-sysinfo.c')
-rw-r--r-- | ui/ncurses/nc-sysinfo.c | 5 |
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); } |