aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-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