Changeset b09f346 for fedkit


Ignore:
Timestamp:
Dec 15, 2008 10:19:47 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
fe157b9
Parents:
f3d72f7
Message:

a little defensive programming

Location:
fedkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedkit/fed-tun.pl

    rf3d72f7 rb09f346  
    370370sub setup_tunnel_cfg {
    371371    my (%opts) = @_;
    372     my $tunnel_iface = "em0";   # XXX
     372    #my $tunnel_iface = "em0";   # XXX
     373    my $tunnel_iface = $opts{'interface'} || "em0";
    373374    my $tunnel_ip;
    374375    my $tunnel_mask;
     
    410411    my $config_succeeded = 0;
    411412    my $tries = 0;
    412     my $max_retries = 30;
     413    my $max_retries = 300;
    413414
    414415    do {
  • fedkit/federate.sh

    rf3d72f7 rb09f346  
    7676SMBPROJECT=`$PERL -ne '/ProjectName:\s+(.*)/i && print "$1\n";' $CONFIGDIR/client.conf`
    7777
     78# If this is empty confusion reigns.  Set a default.
     79if [-z "$SHARE" ]; then
     80        SHARE="USERS"
     81fi
     82
    7883# XXX: modified seer daemon to read a config file.  Not in the tarfile yet.  If
    7984# we see one, and there's a /usr/seer/backend/daemon.py, replace that one with
     
    9398fi
    9499
    95 GWIP=`host -N 10 $GATEWAY | $PERL -ne 's/.* has address // && print;'`
     100while [ -z "$GWIP"]; do
     101        GWIP=`host -N 10 $GATEWAY | $PERL -ne 's/.* has address // && print;'`
     102        echo "GWIP is $GWIP"
     103        sleep 10
     104done
    96105# Copy the global hostnames file into /etc/hosts so this node can address
    97106# others in the experiment on other testbeds.  The extra steps preserves teh
Note: See TracChangeset for help on using the changeset viewer.