#!/bin/sh # Very simple script to copy the global hosts file over the local one # while preserving the localhost entry. Run on DETER master clients grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts cat $1 >> /tmp/hosts cp /tmp/hosts /etc/hosts && rm /tmp/hosts # XXX Danger, hack ahead. Apparently our FC6-SMB image and emulab disagree # about where gated lives. This will alias it. if [ ! -x /usr/sbin/gated ] ; then if [ -x /sbin/gated ] ; then ln /sbin/gated /usr/sbin/gated fi fi /usr/local/etc/emulab/rc/rc.route if [ ! -z "$2" ]; then su -l "$2" -c "$3" fi