]> git.ozlabs.org Git - petitboot/blobdiff - discover/platform.c
ui/ncurses: Add safe mode indicator
[petitboot] / discover / platform.c
index 3ab6b7b7e5eaa7199e92a1e8361e2ff49ae24d42..93f25c357ad1ddbb16675d799be85d7421a185b2 100644 (file)
@@ -43,6 +43,9 @@ static void dump_config(struct config *config)
        if (config->network.n_interfaces || config->network.n_dns_servers)
                pb_log(" network configuration:\n");
 
+       if (config->safe_mode)
+               pb_log(" safe mode: active\n");
+
        for (i = 0; i < config->network.n_interfaces; i++) {
                struct interface_config *ifconf =
                        config->network.interfaces[i];
@@ -84,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;