aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorCristian Gafton <gafton@redhat.com>1998-10-06 16:03:38 +0000
committerCristian Gafton <gafton@redhat.com>1998-10-06 16:03:38 +0000
commita8c0714a362ae9c82b3e98ca9a1860c7f5686c9c (patch)
tree19631872614835c793ecc25d2b2716670b1094d6 /rc.d/rc.sysinit
parent5cb38e3a425222d2c81c9648d5da790a53608568 (diff)
downloadinitscripts-a8c0714a362ae9c82b3e98ca9a1860c7f5686c9c.tar
initscripts-a8c0714a362ae9c82b3e98ca9a1860c7f5686c9c.tar.gz
initscripts-a8c0714a362ae9c82b3e98ca9a1860c7f5686c9c.tar.bz2
initscripts-a8c0714a362ae9c82b3e98ca9a1860c7f5686c9c.tar.xz
initscripts-a8c0714a362ae9c82b3e98ca9a1860c7f5686c9c.zip
Accept all kernel numbers instead of just 2.0.x
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 220f5191..2327e5ad 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -115,7 +115,7 @@ fi
rm -f /lib/modules/preferred
if [ -n "$USEMODULES" ]; then
ktag="`cat /proc/version`"
- mtag=`grep -l "$ktag" /lib/modules/2.0.*/.rhkmvtag` 2> /dev/null
+ mtag=`grep -l "$ktag" /lib/modules/*/.rhkmvtag` 2> /dev/null
if [ -n "$mtag" ]; then
mver=`echo $mtag | sed -e 's,/lib/modules/,,' -e 's,/.rhkmvtag,,' -e 's,[ ].*$,,'`
ln -sf /lib/modules/$mver /lib/modules/preferred