diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-05-23 16:25:25 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-07-10 14:42:56 +1000 |
commit | 08f8488096f397a1babc960bb9939484a3916c66 (patch) | |
tree | 5665a81249b540decd8e681d16b5f65991dfcc67 /ui | |
parent | becf2b28d8b0aa561ac7e42db519071f8065d37f (diff) | |
download | talos-petitboot-08f8488096f397a1babc960bb9939484a3916c66.tar.gz talos-petitboot-08f8488096f397a1babc960bb9939484a3916c66.zip |
discover/sysinfo: Set IPv6 addresses
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ncurses/nc-sysinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index 8252b45..756f15d 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -131,6 +131,9 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen, line("%s:", info->name); 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")); |