static void config_set_defaults(struct config *config)
{
config->autoboot_enabled = true;
+ config->autoboot_timeout_sec = 10;
config->network.interfaces = NULL;
config->network.n_interfaces = 0;
}
pb_log("configuration:\n");
- pb_log(" autoboot: %s\n",
- config->autoboot_enabled ? "enabled" : "disabled");
+ if (config->autoboot_enabled)
+ pb_log(" autoboot: enabled, %d sec\n",
+ config->autoboot_timeout_sec);
+ else
+ pb_log(" autoboot: disabled\n");
- if (config->n_network_configs > 0)
+ if (config->network.n_interfaces || config->network.n_dns_servers)
pb_log(" network configuration:\n");
for (i = 0; i < config->network.n_interfaces; i++) {
}
}
+ for (i = 0; i < config->network.n_dns_servers; i++)
+ pb_log(" dns server %s\n", config->network.dns_servers[i]);
}
int config_init(void *ctx)