FreeBSD Bugzilla – Attachment 13454 Details for
Bug 25605
sysctl for enable/disable ctrl+alt+del key
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 923 bytes, created by
davidx
on 2001-03-08 09:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
davidx
Created:
2001-03-08 09:20:01 UTC
Size:
923 bytes
patch
obsolete
>--- syscons.c.orig Thu Mar 8 16:29:37 2001 >+++ syscons.c Thu Mar 8 16:57:52 2001 >@@ -118,6 +118,10 @@ > SYSCTL_INT(_machdep, OID_AUTO, enable_panic_key, CTLFLAG_RW, &enable_panic_key, > 0, ""); > >+static int disable_halt_key; >+SYSCTL_INT(_machdep, OID_AUTO, disable_halt_key, CTLFLAG_RW, &disable_halt_key, >+ 0, ""); >+ > #define SC_CONSOLECTL 255 > > #define VIRTUAL_TTY(sc, x) (SC_DEV((sc), (x))->si_tty) >@@ -3100,21 +3104,18 @@ > break; > > case RBT: >-#ifndef SC_DISABLE_REBOOT >- shutdown_nice(0); >-#endif >+ if (!disable_halt_key) >+ shutdown_nice(0); > break; > > case HALT: >-#ifndef SC_DISABLE_REBOOT >- shutdown_nice(RB_HALT); >-#endif >+ if (!disable_halt_key) >+ shutdown_nice(RB_HALT); > break; > > case PDWN: >-#ifndef SC_DISABLE_REBOOT >- shutdown_nice(RB_HALT|RB_POWEROFF); >-#endif >+ if (!disable_halt_key) >+ shutdown_nice(RB_HALT|RB_POWEROFF); > break; > > #if NAPM > 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25605
: 13454