aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-02-07 03:43:54 +0000
committerBill Nottingham <notting@redhat.com>2002-02-07 03:43:54 +0000
commit25608554d47c46121935732ab7bbfaeba30457cf (patch)
tree7ab9a0ed988b276ceba88d817578f0f015393888
parent50970b09fa26555ce43cb444421630744d0a70f1 (diff)
downloadinitscripts-25608554d47c46121935732ab7bbfaeba30457cf.tar
initscripts-25608554d47c46121935732ab7bbfaeba30457cf.tar.gz
initscripts-25608554d47c46121935732ab7bbfaeba30457cf.tar.bz2
initscripts-25608554d47c46121935732ab7bbfaeba30457cf.tar.xz
initscripts-25608554d47c46121935732ab7bbfaeba30457cf.zip
don't complain on monolithic kernels (#58288)
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index e66242ae..e37a1cfb 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -741,8 +741,8 @@ done
(/bin/date;
/bin/uname -a;
/bin/cat /proc/cpuinfo;
- /bin/cat /proc/modules;
- /bin/cat /proc/ksyms) >/var/log/ksyms.0
+ [ -r /proc/modules ] && /bin/cat /proc/modules;
+ [ -r /proc/ksyms ] && /bin/cat /proc/ksyms) >/var/log/ksyms.0
# create the crash indicator flag to warn on crashes, offer fsck with timeout
touch /.autofsck
sleep 1