aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-29 04:44:45 +0000
committerBill Nottingham <notting@redhat.com>1999-03-29 04:44:45 +0000
commit90d452b1b91147a30f982549a14d48856c823797 (patch)
treea1c7b5382a6b6015df3f6112c67a8c5401ce95a6
parenta12fcde366596ce84d0c442bf9083c9d5fe79238 (diff)
downloadinitscripts-90d452b1b91147a30f982549a14d48856c823797.tar
initscripts-90d452b1b91147a30f982549a14d48856c823797.tar.gz
initscripts-90d452b1b91147a30f982549a14d48856c823797.tar.bz2
initscripts-90d452b1b91147a30f982549a14d48856c823797.tar.xz
initscripts-90d452b1b91147a30f982549a14d48856c823797.zip
fix depmod logic (preferred really is dead.)
-rwxr-xr-xrc.d/rc.sysinit5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index a95ed0f3..6d2b0192 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -135,7 +135,10 @@ else
USEMODULES=
fi
+# Our modutils don't support it anymore, so we might as well remove
+# the link.
rm -f /lib/modules/preferred
+rm -f /lib/modules/default
if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
# Get ready for kerneld/kmod if module support in the kernel
if [ -z `uname -r | grep "-"` ]; then
@@ -148,7 +151,7 @@ if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
mver=echo $mtag | sed -e 's,/lib/modules/,,' -e 's,/.rhkmvtag,,' -e 's,[ ].*$,,'
fi
if [ -n "$mver" ]; then
- ln -sf /lib/modules/$mver /lib/modules/preferred
+ ln -sf /lib/modules/$mver /lib/modules/default
ln -sf /boot/System.map-$mver /boot/System.map
fi
fi