aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-10-05 17:04:14 +0000
committerBill Nottingham <notting@redhat.com>1999-10-05 17:04:14 +0000
commitf61fa753dd2ee22f1fac5f32dd4710a12497fd4a (patch)
tree593b4dac960f9f0b6c43ef7d01d6e529cfdb4fb0 /rc.d/rc.sysinit
parent987fd7772b898998d0d7a9443d8c5c58193a3798 (diff)
downloadinitscripts-f61fa753dd2ee22f1fac5f32dd4710a12497fd4a.tar
initscripts-f61fa753dd2ee22f1fac5f32dd4710a12497fd4a.tar.gz
initscripts-f61fa753dd2ee22f1fac5f32dd4710a12497fd4a.tar.bz2
initscripts-f61fa753dd2ee22f1fac5f32dd4710a12497fd4a.tar.xz
initscripts-f61fa753dd2ee22f1fac5f32dd4710a12497fd4a.zip
control stop-a like magic sysrq
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit8
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.