OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.platform versions 1.12 and 1.13
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/shtool/sh.platform 1.12 -> 1.13

--- sh.platform  2005/06/15 08:14:35     1.12
+++ sh.platform  2005/07/05 19:05:40     1.13
@@ -128,13 +128,14 @@
             i386 ) AC="iX86" ;;
         esac
         AP="${AC}"
-        AT=`(/sbin/sysctl -n hw.model) 2>&1`
-        case "${AT}" in
-            *"Xeon"* | *"Pentium Pro"* | *"Cyrix 6x86MX"* | *"Pentium II"* | *"Pentium III"* | *"Pentium 4"* | *"Celeron"* ) AT="i686" ;;
-            *"Pentium"* ) AT="i586" ;; *"i486[SD]X"* | *"Cyrix 486"* | *"Cyrix [56]x86"* | *"Blue Lightning" | *"Cyrix 486S/DX" ) AT="i486" ;;
-            *"i386[SD]X"* | *"NexGen 586"* ) AT="i386" ;;
-            * ) AT="${AP}" ;;
-        esac
+        AT="${AP}"
+        if [ ".${AT}" = ".iX86" ]; then
+            case "`(/sbin/sysctl -n hw.model) 2>&1`" in
+                *"Xeon"* | *"Pentium Pro"* | *"Cyrix 6x86MX"* | *"Pentium II"* | *"Pentium III"* | *"Pentium 4"* | *"Celeron"* ) AT="i686" ;;
+                *"Pentium"* ) AT="i586" ;; *"i486[SD]X"* | *"Cyrix 486"* | *"Cyrix [56]x86"* | *"Blue Lightning" | *"Cyrix 486S/DX" ) AT="i486" ;;
+                *"i386[SD]X"* | *"NexGen 586"* ) AT="i386" ;;
+            esac
+        fi
         #   determine system
         r=`echo "${UNAME_RELEASE}" |\
            sed -e 's;[()];;' -e 's/\(-.*\)$/[\1]/'`

CVSTrac 2.0.1