Commit 00aca52e authored by Mike Hibler's avatar Mike Hibler

Prototype changes for Aero 2.4Ghz boxes.

Also change awk scripts to exit after printing something.
parent 2bb177fd
......@@ -21,6 +21,9 @@ pc600|pc850a)
pc1500|pc2000)
echo 'xl0'
;;
pc2400-aero)
echo 'em0'
;;
*)
echo 'unknown';
;;
......
......@@ -5,34 +5,39 @@
# All rights reserved.
#
/^CPU:.*\((25)[0-9][0-9]\.[0-9]+\-MHz/ {
/^CPU:.*\((24[5-9][0-9]|25[0-4][0-9])\.[0-9]+\-MHz/ {
print "2500";
next
exit
}
/^CPU:.*\((19|20)[0-9][0-9]\.[0-9]+\-MHz/ {
/^CPU:.*\((23[5-9][0-9]|24[0-4][0-9])\.[0-9]+\-MHz/ {
print "2400";
exit
}
/^CPU:.*\((19[5-9][0-9]|20[0-4][0-9])\.[0-9]+\-MHz/ {
print "2000";
next
exit
}
/^CPU:.*\(1[78][0-9][0-9]\.[0-9]+\-MHz/ {
/^CPU:.*\((17[5-9][0-9]|18[0-4][0-9])\.[0-9]+\-MHz/ {
print "1800";
next
}/^CPU:.*\(1[45][0-9][0-9]\.[0-9]+\-MHz/ {
exit
}
/^CPU:.*\((14[5-9][0-9]|15[0-4][0-9])\.[0-9]+\-MHz/ {
print "1500";
next
exit
}
/^CPU:.*\(8[0-9][0-9]\.[0-9]+\-MHz/ {
print "850";
next
exit
}
/^CPU:.*\(6[0-9][0-9]\.[0-9]+\-MHz/ {
print "600";
next
exit
}
/^CPU:.*\(29[0-9]|30[0-9]\.[0-9]+\-MHz/ {
print "300";
next
exit
}
/^CPU:.*/ {
print "0";
next
exit
}
......@@ -31,6 +31,9 @@ elif [ $cpuspeed = "850" -a -x $BINDIR/chipset.awk ]; then
echo unknown
;;
esac
# For Aerospace Corp nodes
elif [ $cpuspeed = "2400" ]; then
echo pc${cpuspeed}-aero;
# For Wiconsin nodes - they have a different node typing scheme
elif [ $cpuspeed = "2500" ]; then
echo i2;
......
......@@ -13,17 +13,17 @@
#
/^[ ]+Host bridge: Intel Corp.*[0-9][0-9][0-9][0-9][0-9]BX.*\(AGP disabled\)/ {
print "BX";
next
exit
}
/^[ ]+Host bridge: Intel Corp.*[0-9][0-9][0-9][0-9][0-9]BX/ {
print "BX-AGP";
next
exit
}
/^[ ]+Host bridge: Intel Corp.*[0-9][0-9][0-9][0-9][0-9]GX/ {
print "GX";
next
exit
}
/^[ ]+Host bridge:.*/ {
print "??";
next
exit
}
......@@ -8,7 +8,7 @@
NODETYPE=`nodetype`
case $NODETYPE in
pc300|pc1500|pc2000)
pc300|pc1500|pc2000|pc2400-aero)
echo 'eth0'
;;
i2)
......
......@@ -5,31 +5,35 @@
# All rights reserved.
#
/^cpu MHz.*(24|25)[0-9][0-9]\.[0-9]+$/ {
/^cpu MHz.*(24[5-9][0-9]|25[0-4][0-9])\.[0-9]+$/ {
print "2500";
next
exit
}
/^cpu MHz.*(19|20)[0-9][0-9]\.[0-9]+$/ {
/^cpu MHz.*(23[5-9][0-9]|24[0-4][0-9])\.[0-9]+$/ {
print "2400";
exit
}
/^cpu MHz.*(19[5-9][0-9]|20[0-4][0-9])\.[0-9]+$/ {
print "2000";
next
exit
}
/^cpu MHz.*1[45][0-9][0-9]\.[0-9]+$/ {
/^cpu MHz.*(14[5-9][0-9]|15[0-4][0-9])\.[0-9]+$/ {
print "1500";
next
exit
}
/^cpu MHz.*8[0-9][0-9]\.[0-9]+$/ {
print "850";
next
exit
}
/^cpu MHz.*6[0-9][0-9]\.[0-9]+$/ {
print "600";
next
exit
}
/^cpu MHz.*29[0-9]|30[0-9]\.[0-9]+$/ {
print "300";
next
exit
}
/^cpu MHz.*/ {
print "0";
next
exit
}
......@@ -31,6 +31,9 @@ elif [ $cpuspeed = "850" -a -x $BINDIR/chipset.awk ]; then
echo unknown
;;
esac
# For Aerospace Corp nodes
elif [ $cpuspeed = "2400" ]; then
echo pc${cpuspeed}-aero;
# For Wiconsin nodes - they have a different node typing scheme
elif [ $cpuspeed = "2500" ]; then
echo i2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment