+ if (config->safe_mode)
+ screen->widgets.safe_mode = widget_new_label(set, 0, 0,
+ _("Selecting 'OK' will exit safe mode"));
+
+ screen->widgets.allow_write_l = widget_new_label(set, 0, 0,
+ _("Disk R/W:"));
+ screen->widgets.allow_write_f = widget_new_select(set, 0, 0,
+ COLS - screen->field_x - 1);
+
+ widget_select_add_option(screen->widgets.allow_write_f, 0,
+ _("Prevent all writes to disk"),
+ !config->allow_writes);
+
+ widget_select_add_option(screen->widgets.allow_write_f, 1,
+ _("Allow bootloader scripts to modify disks"),
+ config->allow_writes);
+
+ screen->widgets.boot_tty_l = widget_new_label(set, 0, 0,
+ _("Default tty:"));
+ screen->widgets.boot_tty_f = widget_new_select(set, 0, 0,
+ COLS - screen->field_x - 1);
+
+ for (i = 0; i < config->n_tty; i++){
+ found = config->boot_tty &&
+ strncmp(config->boot_tty, config->tty_list[i],
+ strlen(config->boot_tty)) == 0;
+ widget_select_add_option(screen->widgets.boot_tty_f, i,
+ config->tty_list[i], found);
+ }
+
+ tty = talloc_asprintf(screen, _("Current interface: %s"),
+ ttyname(STDIN_FILENO));
+ screen->widgets.current_tty_l = widget_new_label(set, 0 , 0, tty);
+
+ screen->widgets.ok_b = widget_new_button(set, 0, 0, 10, _("OK"),