patch-2.1.123 linux/drivers/char/sysrq.c
Next file: linux/drivers/char/tty_io.c
Previous file: linux/drivers/char/selection.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Thu Sep 17 09:35:03 1998
- Orig file:
v2.1.122/linux/drivers/char/sysrq.c
- Orig date:
Tue Jul 28 14:21:08 1998
diff -u --recursive --new-file v2.1.122/linux/drivers/char/sysrq.c linux/drivers/char/sysrq.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*-
*
- * $Id: sysrq.c,v 1.7 1997/11/06 15:57:09 mj Exp $
+ * $Id: sysrq.c,v 1.15 1998/08/23 14:56:41 mj Exp $
*
* Linux Magic System Request Key Hacks
*
@@ -70,12 +70,14 @@
printk("Keyboard mode set to XLATE\n");
}
break;
+#ifdef CONFIG_VT
case 'k': /* K -- SAK */
printk("SAK\n");
if (tty)
do_SAK(tty);
reset_vc(fg_console);
break;
+#endif
case 'b': /* B -- boot immediately */
printk("Resetting\n");
machine_restart(NULL);
@@ -131,8 +133,10 @@
default: /* Unknown: help */
if (kbd)
printk("unRaw ");
+#ifdef CONFIG_VT
if (tty)
printk("saK ");
+#endif
printk("Boot "
#ifdef CONFIG_APM
"Off "
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov