uname



About this list Date view Thread view Subject view Author view

Kamo Hiroyasu (wd@ics.nara-wu.ac.jp)
Thu, 06 Jul 2000 23:27:35 +0900


There is a system on which `uname -p' prints the processor type in detail. For example, on OpenBSD 2.3 or after, 'uname -p' prints something like: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) Here is a patch. Kamo Hiroyasu [Kamo is the family name and Hiroyasu the given name.] --- nhc98-1.0pre19/script/harch Fri Oct 15 18:17:40 1999 +++ nhc98-1.0pre19.new/script/harch Wed Jul 5 22:29:03 2000 @@ -15,9 +15,11 @@ then if uname -p >/dev/null 2>&1 then PROCESSOR=`uname -p` - if [ "$PROCESSOR" = "unknown" ] - then PROCESSOR=`uname -m` - fi + case "$PROCESSOR" in + unknown|*\ *) + PROCESSOR=`uname -m` + ;; + esac else if arch >/dev/null 2>&1 then PROCESSOR=`arch`


About this list Date view Thread view Subject view Author view