ui/ncurses: Add safe mode indicator
authorJeremy Kerr <jk@ozlabs.org>
Mon, 21 Jul 2014 10:28:04 +0000 (18:28 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 22 Jul 2014 01:04:59 +0000 (09:04 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/platform.c
ui/ncurses/nc-cui.c

index be60f00fb8205dd4407f0fb14ac84fab5d69b837..93f25c357ad1ddbb16675d799be85d7421a185b2 100644 (file)
@@ -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;
index 7200a81ae4bc5c5a87c5fe8437303751d5a3a033..1f163b9ed10f3323a016a28c64bc5d71d96f8c32 100644 (file)
@@ -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)