Commit 33ecbe1a authored by Austin Clements's avatar Austin Clements

Cleaned this up so it no longer has special cases for nodes without a

plabname file.
parent fc8611ee
......@@ -25,20 +25,9 @@
if [ -e /var/emulab/boot/plabname ]; then
VNODEID=`cat /var/emulab/boot/plabname`;
elif [ -e /etc/vnodeid ]; then
VNODEID=`cat /etc/vnodeid`;
else
# XXX Super-kludge to figure out vnodeid if unpacked by hand
# Only works on Flux Plab nodes
VNODEID=`hostname -s | sed -e 's/planetlab\(.\)/pcplab\1/'`
if [ -e /home/utah6 ]; then
VNODEID=${VNODEID}-1;
elif [ -e /home/utah7 ]; then
VNODEID=${VNODEID}-2;
else
echo Must run as utah6 or utah7 or be setup by Emulab svm
exit 1;
fi;
echo "Vnodeid must be stored in /var/emulab/boot/plabname"
exit 1;
fi
# See how we were called.
......
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