diff options
author | Bill Nottingham <notting@redhat.com> | 1999-03-29 04:44:45 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-03-29 04:44:45 +0000 |
commit | 90d452b1b91147a30f982549a14d48856c823797 (patch) | |
tree | a1c7b5382a6b6015df3f6112c67a8c5401ce95a6 /rc.d/rc.sysinit | |
parent | a12fcde366596ce84d0c442bf9083c9d5fe79238 (diff) | |
download | initscripts-90d452b1b91147a30f982549a14d48856c823797.tar initscripts-90d452b1b91147a30f982549a14d48856c823797.tar.gz initscripts-90d452b1b91147a30f982549a14d48856c823797.tar.bz2 initscripts-90d452b1b91147a30f982549a14d48856c823797.tar.xz initscripts-90d452b1b91147a30f982549a14d48856c823797.zip |
fix depmod logic (preferred really is dead.)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 5 |
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 |