diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-07-21 18:28:04 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-07-22 09:04:59 +0800 |
commit | 2bb12a3b0f27af0d1724d2d58abdb877835289fa (patch) | |
tree | 85e57d098fb8f9058a54b5e334ff5ae1de789a24 | |
parent | dde15c729cb9430325dee7899c73542cba4ca81a (diff) | |
download | talos-petitboot-2bb12a3b0f27af0d1724d2d58abdb877835289fa.tar.gz talos-petitboot-2bb12a3b0f27af0d1724d2d58abdb877835289fa.zip |
ui/ncurses: Add safe mode indicator
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r-- | discover/platform.c | 1 | ||||
-rw-r--r-- | ui/ncurses/nc-cui.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c index be60f00..93f25c3 100644 --- a/discover/platform.c +++ b/discover/platform.c @@ -87,6 +87,7 @@ void config_set_defaults(struct config *config) { config->autoboot_enabled = true; config->autoboot_timeout_sec = 10; + config->autoboot_enabled = true; config->network.interfaces = NULL; config->network.n_interfaces = 0; config->network.dns_servers = NULL; diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c index 7200a81..1f163b9 100644 --- a/ui/ncurses/nc-cui.c +++ b/ui/ncurses/nc-cui.c @@ -592,6 +592,11 @@ static void cui_update_config(struct config *config, void *arg) if (cui->config_screen) config_screen_update(cui->config_screen, config, cui->sysinfo); + + if (config->safe_mode) + nc_scr_status_printf(cui->current, + "SAFE MODE: select '%s' to continue", + "Rescan devices"); } int cui_send_config(struct cui *cui, struct config *config) |