aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-05-01 21:08:32 +0000
committerErik Troan <ewt@redhat.com>1998-05-01 21:08:32 +0000
commitf7a1520cca3c1c1be44871952cc6f839f81b643a (patch)
tree7c0c3e20589fbf90e3be1567ad4dd1ab92b49ea3 /rc.d/rc.sysinit
parent1fd9ce20a5be3a791820e34246ccf84fd0987113 (diff)
downloadinitscripts-f7a1520cca3c1c1be44871952cc6f839f81b643a.tar
initscripts-f7a1520cca3c1c1be44871952cc6f839f81b643a.tar.gz
initscripts-f7a1520cca3c1c1be44871952cc6f839f81b643a.tar.bz2
initscripts-f7a1520cca3c1c1be44871952cc6f839f81b643a.tar.xz
initscripts-f7a1520cca3c1c1be44871952cc6f839f81b643a.zip
use /lib/modules/preferred symlink
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 9da1000d..844bb09f 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -112,6 +112,7 @@ else
fi
# Get the modules ready to go -- we use awk here as cut is in /usr/bin
+rm -f /lib/modules/preferred
if [ -n $USEMODULES -a ! -d /lib/modules/`uname -r` ]; then
set `cat /proc/cmdline`
while [ $# -gt 0 ]; do
@@ -124,7 +125,7 @@ if [ -n $USEMODULES -a ! -d /lib/modules/`uname -r` ]; then
if [ "$kernelname" = "/boot/vmlinuz" -a \
-d /lib/modules/$versioninfo -a \
$versioninfo != `uname -r` ]; then
- ln -sf $versioninfo /lib/modules/`uname -r`
+ ln -sf $versioninfo /lib/modules/preferred
fi
fi
fi