Bug 6995 - rc.sysinit shouldn't try to use sysrq if it doesn't exist
rc.sysinit shouldn't try to use sysrq if it doesn't exist
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 1999-11-14 10:21 EST by Jonathan Kamens
Modified: 2014-03-16 22:11 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-11-15 11:52:47 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jonathan Kamens 1999-11-14 10:21:04 EST
The code that tries to turn off sysrq in rc.sysinit should read as follows:

# Turn off sysrq
if [ "$MAGIC_SYSRQ" = "no" -a -e /proc/sys/kernel/sysrq ]; then
        echo "0" > /proc/sys/kernel/sysrq

The addition of "-a /proc/sys/kernel/sysrq" ensures that the script won't
try to disable sysrq if it isn't compiled into the current kernel.
Comment 1 Bill Nottingham 1999-11-15 11:52:59 EST
already fixed in the errata release...

Note You need to log in before you can comment on or make changes to this bug.