Changeset dbc9144 for fedkit


Ignore:
Timestamp:
Feb 23, 2010 7:53:59 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
1102368
Parents:
db64553
Message:

I feel so dirty.

The FC6-SMB image has a misplaced gated in that Emulab thinks it should be
somewhere else and dynamic routing fails to come up. Sigh. This little hack
symlinks gated into the right place and restarts the router.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.pl

    rdb64553 rdbc9144  
    1313
    1414my $TMCC = "/usr/local/etc/emulab/tmcc";
     15my $RC_ROUTE = "/usr/local/etc/emulab/rc/rc.route";
    1516my $tmcc_p = new IO::Pipe() || die "Can't open pipe: $!\n";
    1617my $shared_config_dir;
     
    7980copy("/tmp/hosts", "/etc/hosts");
    8081
     82# Ick.  at least one of our images has gated in the wrong place (sigh).  If
     83# so, fix it and restart routing. 
     84if (!-x "/usr/sbin/gated" && -x "/sbin/gated" ) {
     85    print "Linking to /sbin/gated and starting routing\n";
     86    symlink("/sbin/gated", "/usr/sbin/gated");
     87    system("$RC_ROUTE boot") if -x $RC_ROUTE;
     88}
     89
    8190# If there are tunnelip interfaces to bring up, bring 'em
    8291system("$perl -I/usr/local/federation/lib " .
Note: See TracChangeset for help on using the changeset viewer.