|
|
@ -51,7 +51,10 @@ set_kernel_arch() {
|
|
|
|
KERNEL_ARCH=${ARCH}
|
|
|
|
KERNEL_ARCH=${ARCH}
|
|
|
|
case ${ARCH} in
|
|
|
|
case ${ARCH} in
|
|
|
|
ppc|ppc64)
|
|
|
|
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
|
|
|
|
then
|
|
|
|
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "16" ] || [ "${PAT}" -gt "6" ]
|
|
|
|
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "16" ] || [ "${PAT}" -gt "6" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
@ -60,7 +63,10 @@ set_kernel_arch() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
x86)
|
|
|
|
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
|
|
|
|
then
|
|
|
|
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
|
|
|
|
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
@ -71,7 +77,10 @@ set_kernel_arch() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
x86_64)
|
|
|
|
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
|
|
|
|
then
|
|
|
|
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
|
|
|
|
if [ "${PAT}" -eq "6" -a "${SUB}" -ge "24" ] || [ "${PAT}" -gt "6" ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|