aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-08-31 22:18:17 +0000
committerBill Nottingham <notting@redhat.com>1999-08-31 22:18:17 +0000
commit2dc7a9140cf2196852cd8769065cb86b4d803b73 (patch)
tree14581365d2bc8dcc89a06002de64ca9435350ae1 /rc.d
parentabb2109a73ad0d86ebb15265550eb037c5c4b889 (diff)
downloadinitscripts-2dc7a9140cf2196852cd8769065cb86b4d803b73.tar
initscripts-2dc7a9140cf2196852cd8769065cb86b4d803b73.tar.gz
initscripts-2dc7a9140cf2196852cd8769065cb86b4d803b73.tar.bz2
initscripts-2dc7a9140cf2196852cd8769065cb86b4d803b73.tar.xz
initscripts-2dc7a9140cf2196852cd8769065cb86b4d803b73.zip
disable magic sysrq by default
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 0b7d2210..1b323314 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -121,6 +121,11 @@ fi
action "Mounting proc filesystem" mount -n -t proc /proc /proc
+# Turn off sysrq
+if [ "$MAGIC_SYSRQ" = "no" ]; then
+ echo "0" > /proc/sys/kernel/sysrq
+fi
+
if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions`
else