Commit 1e8832a9 authored by Mike Hibler's avatar Mike Hibler
Browse files

Mods to allow dhclient-exit-hooks to run in the frisbee MFS

(we want to record "myip" so we can use it in the frisbee command line)
parent 8fd99238
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
......@@ -20,9 +20,13 @@ fi
#
# See if the Testbed configuration software wants to change the hostname.
# Installed into /etc.
# Installed into /etc. Note: frisbee MFS doesn't have perl and hence
# doesn't have this script.
#
$BINDIR/sethostname $new_domain_name
if [ -x $BINDIR/sethostname ]
then
$BINDIR/sethostname $new_domain_name
fi
#
# Once we have an IP address, we can stop dhclient so that it doesn't get
......
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -9,6 +9,7 @@ if [ -r /etc/emulab/paths.sh ]; then
. /etc/emulab/paths.sh
else
BINDIR=/etc/testbed
BOOTDIR=/etc/testbed
fi
$BINDIR/tmcc state RELOADSETUP
......@@ -86,12 +87,17 @@ fi
if [ x"$ADDRESS" != x ]; then
PORT=`echo $ADDRESS | awk -F: '{ printf $2 }'`;
MCAST=`echo $ADDRESS | awk -F: '{ printf $1 }'`;
if [ -e $BOOTDIR/myip ]; then
MCASTIF="-i `cat $BOOTDIR/myip`"
else
MCASTIF=""
fi
MCASTADDR="-m $MCAST -p $PORT";
echo "Running $BINDIR/frisbee $LOADIP $MEMARGS $SLICE $MCASTADDR /dev/$DISK at `date`";
echo "Running $BINDIR/frisbee $LOADIP $MEMARGS $SLICE $MCASTIF $MCASTADDR /dev/$DISK at `date`";
$BINDIR/tmcc state RELOADING;
$BINDIR/frisbee $LOADIP $MEMARGS $SLICE $MCASTADDR /dev/$DISK;
$BINDIR/frisbee $LOADIP $MEMARGS $SLICE $MCASTIF $MCASTADDR /dev/$DISK;
case $? in
0)
echo "Frisbee run finished";
......
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