- fix /etc/hosts generation
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 16 May 2006 17:09:34 +0000 (17:09 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 16 May 2006 17:09:34 +0000 (17:09 +0000)
plc.d/network

index c00f9d3..88ffec0 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # 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