Support vbeprobe MODE

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-15 14:37:28 +02:00
parent c99dead654
commit 3f8fcb6a24
2 changed files with 45 additions and 9 deletions

View file

@ -292,10 +292,12 @@ struct legacy_command legacy_commands[] =
/* FIXME: uppermem unsupported. */
{"uuid", "search --set=root --fs-uuid '%s'\n", NULL, 0, 1, {TYPE_VERBATIM},
0, "UUID", "Find root by UUID"},
/* FIXME: support MODE. */
{"vbeprobe", "insmod vbe; videoinfo\n", NULL, 0, 0, {}, 0, "[MODE]",
{"vbeprobe", "insmod vbe; videoinfo '%s'\n", NULL, 0, 1, {TYPE_VBE_MODE},
FLAG_FALLBACK_AVAILABLE, "[MODE]",
"Probe VBE information. If the mode number MODE is specified, show only"
" the information about only the mode."}
" the information about only the mode."},
{"vbeprobe", "insmod vbe; videoinfo\n", NULL, 0, 0, {},
FLAG_FALLBACK, NULL, NULL}
};
char *