# Distributed under the GPL v2
# $Id$
+ 26 Jul 2011; Robin H. Johnson <robbat2@gentoo.org> gen_arch.sh:
+ Bug #376467: fix kernel version checks for 3.0 kernel.
+
23 Jul 2011; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts,
netboot/linuxrc.x:
Fix permissions of /dev/pts (bug #375947)
KERNEL_ARCH=${ARCH}
case ${ARCH} in
ppc|ppc64)
- if [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ]
+ if [ "${VER}" -ge "3" ]
+ then
+ KERNEL_ARCH=powerpc
+ elif [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ]
then
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "16" ] || [ "${PAT}" -gt "6" ]
then
fi
;;
x86)
- if [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
+ if [ "${VER}" -ge "3" ]
+ then
+ KERNEL_ARCH=x86
+ elif [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
then
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
then
fi
;;
x86_64)
- if [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
+ if [ "${VER}" -ge "3" ]
+ then
+ KERNEL_ARCH=x86
+ elif [ "${VER}" -eq "2" -a "${PAT}" -ge "6" ] || [ "${VER}" -gt "2" ]
then
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
then