nodetype 641 Bytes
Newer Older
1
#!/bin/sh
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
3
4
5
6
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# All rights reserved.
#
7
. /etc/emulab/paths.sh
8

9
10
if [ -x $BINDIR/cpuspeed.awk ]; then
	cpuspeed=`$BINDIR/cpuspeed.awk /proc/cpuinfo`;
11
12
13
14
15
16
else
	cpuspeed='';
fi

if [ x$cpuspeed = x ] || [ $cpuspeed = 0 ]; then
	echo "unknown";
17
18

# XXX hack for minibed
19
20
elif [ $cpuspeed = "850" -a -x $BINDIR/chipset.awk ]; then
	if [ "`$BINDIR/chipset.awk /proc/pci`" = "GX" ]; then
21
		echo pcL440GX;
22
23
	else
		echo pc$cpuspeed;
24
25
	fi

26
27
28
29
# For Wiconsin nodes - they have a different node typing scheme
elif [ $cpuspeed = "2500" ]; then
	echo i2;

30
31
32
else
	echo pc$cpuspeed;
fi