Commit abad9446 authored by Robert Ricci's avatar Robert Ricci

New script: control_interface . Simply prints out the name of the

control interface for this node.
parent 7b348e2d
......@@ -55,6 +55,7 @@ script-install: dir-install
/etc/dhclient-exit-hooks
$(INSTALL) -m 755 $(SRCDIR)/nodetype /etc/testbed/nodetype
$(INSTALL) -m 755 $(SRCDIR)/cpuspeed.awk /etc/testbed/cpuspeed.awk
$(INSTALL) -m 755 $(SRCDIR)/control_interface /etc/testbed/control_interface
$(INSTALL) -m 755 $(SRCDIR)/start_if.fxp0 /etc/start_if.fxp0
$(INSTALL) -m 755 $(SRCDIR)/start_if.fxp4 /etc/start_if.fxp4
$(INSTALL) -m 755 $(SRCDIR)/start_if.xl0 /etc/start_if.xl0
......
#!/bin/sh
NODETYPE=`/etc/testbed/nodetype`
if [ $NODETYPE = 'pc600' ]; then
echo 'fxp4'
elif [ $NODETYPE = 'pc850' ]; then
echo 'fxp0'
elif [ $NODETYPE = 'pc1500' ]; then
echo 'xl0'
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