From: Mark Huang Date: Tue, 16 May 2006 17:09:34 +0000 (+0000) Subject: - fix /etc/hosts generation X-Git-Tag: myplc-0_4-rc1~38 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=b8aaf8fbaf7937e064b6365368b4033546b9a4e3 - fix /etc/hosts generation --- diff --git a/plc.d/network b/plc.d/network index c00f9d3..88ffec0 100755 --- a/plc.d/network +++ b/plc.d/network @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: network,v 1.1 2006/04/06 21:51:59 mlhuang Exp $ +# $Id: network,v 1.2 2006/04/25 21:18:19 mlhuang Exp $ # # Source function library and configuration @@ -26,7 +26,7 @@ case "$1" in hostname=PLC_${server}_HOST ip=$(gethostbyname ${!hostname}) if [ -n "$ip" ] ; then - echo "$ip $hostname" + echo "$ip ${!hostname}" fi done ) >>/etc/hosts