From f7a1520cca3c1c1be44871952cc6f839f81b643a Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Fri, 1 May 1998 21:08:32 +0000 Subject: use /lib/modules/preferred symlink --- rc.d/rc.sysinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1