5 # Manage network related configuration files
7 # Mark Huang <mlhuang@cs.princeton.edu>
8 # Copyright (C) 2006 The Trustees of Princeton University
10 # $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
13 # Source function library and configuration
14 . /etc/plc.d/functions
18 MESSAGE=$"Generating network files"
22 echo "127.0.0.1 localhost.localdomain localhost" >/etc/hosts
24 for server in API BOOT WWW ; do
25 hostname=PLC_${server}_HOST
26 ip=$(gethostbyname ${!hostname})
27 if [ -n "$ip" ] ; then
35 [ -n "$PLC_NET_DNS1" ] && echo "nameserver $PLC_NET_DNS1"
36 [ -n "$PLC_NET_DNS2" ] && echo "nameserver $PLC_NET_DNS2"