aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-06-25 20:27:36 +0000
committerBill Nottingham <notting@redhat.com>1999-06-25 20:27:36 +0000
commit24bb0521549a35331f25e0046272f134872b7a93 (patch)
tree97799189f0211a871f74a2b510735aa24de00bef /rc.d/rc.sysinit
parent27de948533bb7909f8a606f9a081b3d5198d8f86 (diff)
downloadinitscripts-24bb0521549a35331f25e0046272f134872b7a93.tar
initscripts-24bb0521549a35331f25e0046272f134872b7a93.tar.gz
initscripts-24bb0521549a35331f25e0046272f134872b7a93.tar.bz2
initscripts-24bb0521549a35331f25e0046272f134872b7a93.tar.xz
initscripts-24bb0521549a35331f25e0046272f134872b7a93.zip
don't create module-info, System.map links - they aren't needed
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit9
1 files changed, 2 insertions, 7 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1d1a2a91..1e607740 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -223,11 +223,8 @@ fi
rm -f /lib/modules/preferred
rm -f /lib/modules/default
if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
- # Get ready for kmod if module support in the kernel
- if [ -n `uname -r | grep "-"` ]; then
- # we're using a new kernel, no preferred needed
- mver=`uname -r`
- else
+ # If they aren't using a recent sane kernel, make a link for them
+ if [ ! -n `uname -r | grep "-"` ]; then
ktag="`cat /proc/version`"
mtag=`grep -l "$ktag" /lib/modules/*/.rhkmvtag 2> /dev/null`
if [ -n "$mtag" ]; then
@@ -237,8 +234,6 @@ if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
ln -sf /lib/modules/$mver /lib/modules/default
fi
fi
- [ -n "$mver" -a -f "/boot/module-info-$mver" ] && ln -sf /boot/module-info-$mver /boot/module-info
- [ -n "$mver" -a -f "/boot/System.map-$mver" ] && ln -sf /boot/System.map-$mver /boot/System.map
if [ -L /lib/modules/default ]; then
action "Finding module dependencies" depmod -a default
else