Subject: Re: Processor types and uname data on AIX (proposed change)
To: None <tech-pkg@netbsd.org>
From: Peter Schmiedeskamp <pschmied@yahoo.com>
List: tech-pkg
Date: 06/03/2004 09:02:08
Sorry for the glacial pace of getting this patch to
you all.

Given the excellent feedback on using the "bootinfo
-T" command to return the architecture type, here is a
patch to machine.sh that should fix some of the uname
issues on AIX.


--- machine.sh.old      Thu Jun  3 09:42:08 2004
+++ machine.sh  Thu Jun  3 09:52:03 2004
@@ -66,6 +66,12 @@
        OSREL=`uname -v`
        OSMAJOR=`IFS=.; set $OSREL; echo $1`
        ;;
+AIX)
+       OSMAJOR=`uname -v`
+       OSMINOR=`uname -r`
+       MACHINE=$OS$OSMAJOR.$OSMINOR
+       MACHINE_ARCH=`bootinfo -T`
+       ;;
 esac
 
 MACHINE=${MACHINE:-$OS$OSMAJOR}


Let me know if this works for everyone.  I apologize
for the delay.

-Peter


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/