Path: blob/next/external/patch/misc/0007-bootsplash.patch
17846 views
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c1index f4166263bb3a..a248429194bb 1006442--- a/drivers/tty/vt/keyboard.c3+++ b/drivers/tty/vt/keyboard.c4@@ -47,6 +47,8 @@56#include <asm/irq_regs.h>78+#include <linux/bootsplash.h>9+10extern void ctrl_alt_del(void);1112/*13@@ -1353,6 +1355,28 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)14}15#endif1617+ /* Trap keys when bootsplash is shown */18+ if (bootsplash_would_render_now()) {19+ /* Deactivate bootsplash on ESC or Alt+Fxx VT switch */20+ if (keycode >= KEY_F1 && keycode <= KEY_F12) {21+ bootsplash_disable();22+23+ /*24+ * No return here since we want to actually25+ * perform the VT switch.26+ */27+ } else {28+ if (keycode == KEY_ESC)29+ bootsplash_disable();30+31+ /*32+ * Just drop any other keys.33+ * Their effect would be hidden by the splash.34+ */35+ return;36+ }37+ }38+39if (kbd->kbdmode == VC_MEDIUMRAW) {40/*41* This is extended medium raw mode, with keys above 127424344