key = map_key_core (code, status, &alt_gr_consumed);
- if (key == 0 || key == GRUB_TERM_SHIFT) {
+ if (key == 0 || key == GRUB_TERM_SHIFT)
grub_printf ("Unknown key 0x%x detected\n", code);
- return GRUB_TERM_NO_KEY;
- }
if (status & GRUB_TERM_STATUS_CAPS)
{
}
print " -s $2 $sections{$1}"
- if ($sections{$1} ne '0x0' and $sections{$1} ne '');
+ if ($sections{$1} ne '0x0');
};
close (READELF);
print "\n";
nested_level++;
grub_normal_execute (config, 0, 0);
grub_boot_time ("Entering shell");
- grub_cmdline_run (0, 1);
+ grub_cmdline_run (0);
nested_level--;
if (grub_normal_exit_level)
grub_normal_exit_level--;
}
void
-grub_cmdline_run (int nested, int force_auth)
+grub_cmdline_run (int nested)
{
grub_err_t err = GRUB_ERR_NONE;
- do
- {
- err = grub_auth_check_authentication (NULL);
- }
- while (err && force_auth);
+ err = grub_auth_check_authentication (NULL);
if (err)
{
case 'c':
menu_fini ();
- grub_cmdline_run (1, 0);
+ grub_cmdline_run (1);
goto refresh;
case 'e':
case GRUB_TERM_CTRL | 'c':
case GRUB_TERM_KEY_F2:
- grub_cmdline_run (1, 0);
+ grub_cmdline_run (1);
goto refresh;
case GRUB_TERM_CTRL | 'x':
grub_video_checksum ("cmdline_cat");
if (!grub_test_use_gfxterm ())
- grub_cmdline_run (1, 0);
+ grub_cmdline_run (1);
grub_test_use_gfxterm_end ();
struct grub_term_output *term);
void grub_normal_init_page (struct grub_term_output *term, int y);
char *grub_file_getline (grub_file_t file);
-void grub_cmdline_run (int nested, int force_auth);
+void grub_cmdline_run (int nested);
/* Defined in `cmdline.c'. */
char *grub_cmdline_get (const char *prompt);