Commit 75f0e6e8 authored by Mike Hibler's avatar Mike Hibler

mini-testbed control interface goop for Linux

parent 8ec05f0d
......@@ -56,6 +56,7 @@ script-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/sethostname $(INSTALL_DIR)/sethostname
$(INSTALL) -m 644 $(SRCDIR)/hosts $(INSTALL_DIR)/hosts
$(INSTALL) -m 644 $(SRCDIR)/pump.conf /etc/pump.conf
$(INSTALL) -m 755 $(SRCDIR)/chipset.awk $(INSTALL_DIR)/chipset.awk
$(INSTALL) -m 755 $(SRCDIR)/cpuspeed.awk $(INSTALL_DIR)/cpuspeed.awk
$(INSTALL) -m 755 $(SRCDIR)/nodetype $(INSTALL_DIR)/nodetype
$(INSTALL) -m 755 $(SRCDIR)/control_interface $(INSTALL_DIR)/control_interface
......@@ -65,6 +66,7 @@ script-install: dir-install
$(INSTALL) -m 755 $(SRCDIR)/ifcfg-eth3 /etc/sysconfig/network-scripts/ifcfg-eth3
$(INSTALL) -m 755 $(SRCDIR)/ifcfg-eth4 /etc/sysconfig/network-scripts/ifcfg-eth4
$(INSTALL) -m 755 $(SRCDIR)/rc.route $(INSTALL_DIR)/rc.route
$(INSTALL) -m 644 $(SRCDIR)/gated_eth0.conf $(INSTALL_DIR)/gated_eth0.conf
$(INSTALL) -m 644 $(SRCDIR)/gated_eth2.conf $(INSTALL_DIR)/gated_eth2.conf
$(INSTALL) -m 644 $(SRCDIR)/gated_eth4.conf $(INSTALL_DIR)/gated_eth4.conf
$(INSTALL) -m 755 $(SRCDIR)/S12testbed /etc/rc.d/rc3.d/S12testbed
#!/usr/bin/awk -f
/^[ ]+Host bridge: Intel Corporation.*[0-9][0-9][0-9][0-9][0-9]BX/ {
print "BX";
next
}
/^[ ]+Host bridge: Intel Corporation.*[0-9][0-9][0-9][0-9][0-9]GX/ {
print "GX";
next
}
/^[ ]+Host bridge:.*/ {
print "??";
next
}
......@@ -6,6 +6,8 @@ if [ "$NODETYPE" = 'pc600' ]; then
echo 'eth4'
elif [ "$NODETYPE" = 'pc850' ]; then
echo 'eth2'
elif [ "$NODETYPE" = 'pcL440GX' ]; then
echo 'eth0'
elif [ "$NODETYPE" = 'pc1500' ]; then
echo 'eth4'
fi
# smux is a way of exporting route info via SNMP.
# You can turn it on if you have an SNMP daemon running.
smux off;
# no RIP routing
rip off;
# There be magic in here.
#
# Backbone contains the control network and is marked passive to avoid
# sending any OSPF traffic out on it.
#
# The other area is all the experimental interfaces. They have priority=1
# cuz that is what makes it work. Without that, info was not exchanged.
# I saw the priority setting in nexthop.com examples and just did it.
#
ospf on {
backbone {
interface eth0 { passive; };
};
area 0.0.0.2 {
authtype none;
# XXX current eth0 control boxes only have 2 experimental IFs
interface eth1 { priority 1; };
interface eth2 { priority 1; };
};
};
......@@ -8,6 +8,13 @@ fi
if [ x$cpuspeed = x ] || [ $cpuspeed = 0 ]; then
echo "unknown";
# XXX hack for minibed
elif [ $cpuspeed = "850" -a -x '/etc/rc.d/testbed/chipset.awk' ]; then
if [ `/etc/rc.d/testbed/chipset.awk /proc/pci` = "GX" ]; then
echo pcL440GX;
fi
else
echo pc$cpuspeed;
fi
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