First page Back Continue Last page Summary Graphics
A generic rc.local
/etc/beowulf/beoset
- #!/bin/sh
- NODE=$1
- NAME=$2
- IP=$3
- NETMASK=255.255.255.224
- BROADCAST=209.38.92.223
- GATEWAY=209.38.92.222
- BPSH() { eval "bpsh $NODE $*" || exit 1 }
- echo "Host $NAME $IP"
- BPSH hostname $NAME
- BPSH ifconfig eth0 netmask 255.255.255.0 broadcast 192.168.1.255
- BPSH ifconfig eth1 up $IP netmask $NETMASK broadcast $BROADCAST
- BPSH route add default gw $GATEWAY eth1
- bpcp /etc/beowulf/etc/* $NODE:/etc
Notes: