Added a check to disable udev on 2.4 kernels; bug #59687.
authorTim Yamin <plasmaroo@gentoo.org>
Wed, 11 Aug 2004 18:07:13 +0000 (18:07 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Wed, 11 Aug 2004 18:07:13 +0000 (18:07 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@127 67a159dc-881f-0410-a524-ba9dfbe2cb84

genkernel

index eb0f339b85cc571a97fd6772ba2054adef979a1f..ee6c5c88039014861d0a0c70592fe4bd30beecc4 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -216,6 +216,7 @@ then
        fi
 
        compile_devfsd
+       [ "${VER}" -lt '2' ] || [ "${VER}" -eq '2' -a "${PAT}" -lt '6' -a "${UDEV}" -eq '1' ] && UDEV=0 && print_info 1 'udev: Target is a 2.4 kernel, support disabled.'
        [ "${VER}" -gt '2' ] || [ "${VER}" -eq '2' -a "${PAT}" -ge '6' ] && UDEV=1 && print_info 1 'udev: Target is a 2.6 kernel, support enabled.'
        [ "${UDEV}" -eq '1' ] && compile_udev