diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 55231a04..805e7629 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -45,8 +45,14 @@ fi action "Mounting proc filesystem" mount -n -t proc /proc /proc # Turn off sysrq -if [ "$MAGIC_SYSRQ" = "no" ]; then +if [ -f /proc/sys/kernel/sysrq -a "$MAGIC_SYSRQ" = "no" ]; then echo "0" > /proc/sys/kernel/sysrq + action "Turning off Magic SysRq key" /bin/true +fi +# Turn off Stop-A +if [ -f /proc/sys/kernel/stop-a -a "$MAGIC_SYSRQ" = "no" ]; then + echo "0" > /proc/sys/kernel/stop-a + action "Turning off Stop-A" /bin/true fi # Set the system clock. |