| 1 |
#! /bin/sh
|
| 2 |
|
| 3 |
catnc() {
|
| 4 |
# cat but no comment lines
|
| 5 |
egrep -v "^#" $1
|
| 6 |
}
|
| 7 |
|
| 8 |
# echo architecture and OS name in upper case. Do NOT remove these two lines
|
| 9 |
uname -s | tr '[:lower:]' '[:upper:]'
|
| 10 |
[ -x "`which dpkg`" ] && dpkg --print-installation-architecture | tr /a-z/ /A-Z/
|
| 11 |
|
| 12 |
# the Beowulf cluster; all nodes except the master node use classes from file class/atoms
|
| 13 |
case $HOSTNAME in
|
| 14 |
atom00) echo "BEOWULF BEOWULF_MASTER NETTOOLS NTP DHCP_SERVER DNS_SERVER";;
|
| 15 |
atom??) catnc atoms ;;
|
| 16 |
esac
|
| 17 |
|
| 18 |
# use a list of classes for our demo machine
|
| 19 |
case $HOSTNAME in
|
| 20 |
demohost)
|
| 21 |
catnc demo ;;
|
| 22 |
esac
|