Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 18594 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-24 / +28 lines)
Line  Link Here
0
-- Configure
0
++ Configure
Lines 884-913 Link Here
884
884
885
# Check out the module stuff
885
# Check out the module stuff
886
886
887
if [ ! -x /sbin/insmod -o ! -x /sbin/rmmod -o ! -x /sbin/lsmod ] ; then
887
if [ "$CONFIG_PCMCIA" != "y" ] ; then
888
    echo "Your module utilities (insmod, rmmod) are missing from /sbin!"
888
889
    echo "    To fix, you should build and install the latest set" \
889
    if [ ! -x /sbin/insmod -o ! -x /sbin/rmmod -o ! -x /sbin/lsmod ] ; then
890
         "of module tools,"
890
	echo "Your module utilities (insmod, rmmod) are missing from /sbin!"
891
    echo "    available from FTP sites listed in the HOWTO."
891
	echo "    To fix, you should build and install the latest set" \
892
    fail
892
	     "of module tools,"
893
fi
893
	echo "    available from FTP sites listed in the HOWTO."
894
894
	fail
895
MOD_RELEASE=`/sbin/insmod -V 2>&1 | \
895
    fi
896
    sed -n -e 's/.*[Vv]ersion \([0-9][0-9.]*[0-9]\).*/\1/p'`
896
897
X=`echo $MOD_RELEASE | sed -e 's/\./ /g'`
897
    MOD_RELEASE=`/sbin/insmod -V 2>&1 | \
898
MOD_CODE=`version $X`
898
	sed -n -e 's/.*[Vv]ersion \([0-9][0-9.]*[0-9]\).*/\1/p'`
899
if [ $VERSION_CODE -ge `version 2 1 85` ] ; then
899
    X=`echo $MOD_RELEASE | sed -e 's/\./ /g'`
900
    NEED=`version 2 1 85` ; T=2.1.85
900
    MOD_CODE=`version $X`
901
elif [ $VERSION_CODE -ge `version 2 1 18` ] ; then
901
    if [ $VERSION_CODE -ge `version 2 1 85` ] ; then
902
    NEED=`version 2 1 23` ; T=2.1.23
902
	NEED=`version 2 1 85` ; T=2.1.85
903
else
903
    elif [ $VERSION_CODE -ge `version 2 1 18` ] ; then
904
    NEED=`version 2 0 0` ; T=2.0.0
904
	NEED=`version 2 1 23` ; T=2.1.23
905
fi
905
    else
906
	NEED=`version 2 0 0` ; T=2.0.0
907
    fi
908
909
    if [ "$NEED" -gt "$MOD_CODE" ] ; then
910
	echo "Your module utilities are version $MOD_RELEASE.  That is too old"
911
	echo "    for this kernel!  To fix, upgrade to at least version $T."
912
	fail
913
    fi
906
914
907
if [ $NEED -gt $MOD_CODE ] ; then
908
    echo "Your module utilities are version $MOD_RELEASE.  That is too old"
909
    echo "    for this kernel!  To fix, upgrade to at least version $T."
910
    fail
911
fi
915
fi
912
916
913
#=======================================================================
917
#=======================================================================

Return to bug 18594