source: fedkit/make_hosts @ f778038

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since f778038 was f778038, checked in by Ted Faber <faber@…>, 17 years ago

working fc6 fed image!

  • Property mode set to 100755
File size: 574 bytes
Line 
1#!/bin/sh
2
3# Very simple script to copy the global hosts file over the local one
4# while preserving the localhost entry.  Run on DETER master clients
5
6grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts
7cat $1 >> /tmp/hosts
8cp /tmp/hosts /etc/hosts && rm /tmp/hosts
9
10
11# XXX Danger, hack ahead.  Apparently our FC6-SMB image and emulab disagree
12# about where gated lives.  This will alias it.
13if [ ! -x /usr/sbin/gated ] ; then 
14        if [ -x /sbin/gated ] ; then
15                ln /sbin/gated /usr/sbin/gated
16        fi
17fi
18/usr/local/etc/emulab/rc/rc.route
19
20if [ ! -z "$2" ]; then 
21        su -l "$2" -c "$3"
22fi
Note: See TracBrowser for help on using the repository browser.