From 24bb0521549a35331f25e0046272f134872b7a93 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 25 Jun 1999 20:27:36 +0000 Subject: don't create module-info, System.map links - they aren't needed --- rc.d/rc.sysinit | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1