Changeset 3c7da22 for fedkit/federate.sh
- Timestamp:
- Sep 17, 2007 11:35:32 AM (17 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- f70f9c8
- Parents:
- a098fab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/federate.sh
ra098fab r3c7da22 37 37 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 38 38 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. 41 GATEWAY=`perl -ne '/ControlGateway:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 42 SHARE=`perl -ne '/SMBShare:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 43 SMBUSER=`perl -ne '/ProjectUser:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 40 44 41 45 # … … 81 85 echo "Mounting via SMB." 82 86 83 exec "/tmp/$SMBMOUNT" 87 exec "/tmp/$SMBMOUNT" $SHARE $SMBUSER $GATEWAY
Note: See TracChangeset
for help on using the changeset viewer.