Changeset 3c7da22 for fedkit/federate.sh


Ignore:
Timestamp:
Sep 17, 2007 11:35:32 AM (17 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:
f70f9c8
Parents:
a098fab
Message:

Parameterize federate.sh and smbmount.pl (several parameters were hard wired)

make_hosts runs on deter nodes when DETER is the master testbed. It puts
all the federated hosts into /etc/hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/federate.sh

    ra098fab r3c7da22  
    3737cp /tmp/hosts /etc/hosts && rm /tmp/hosts
    3838
    39 GATEWAY=`$EMUDIR/tmcc -b syncserver | awk ' { match($0, /SERVER=[^[:space:]]+/); print substr($0,RSTART+8,RLENGTH-9);}'`
     39# Get our gateway, share, and mount user from the configuration file.
     40# There's probably a way to get all three at once, but this works.
     41GATEWAY=`perl -ne '/ControlGateway:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf`
     42SHARE=`perl -ne '/SMBShare:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf`
     43SMBUSER=`perl -ne '/ProjectUser:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf`
    4044
    4145#
     
    8185echo "Mounting via SMB."
    8286
    83 exec "/tmp/$SMBMOUNT"
     87exec "/tmp/$SMBMOUNT" $SHARE $SMBUSER $GATEWAY
Note: See TracChangeset for help on using the changeset viewer.