git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3294d4a
)
- fix /etc/hosts generation
author
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 16 May 2006 17:09:34 +0000
(17:09 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Tue, 16 May 2006 17:09:34 +0000
(17:09 +0000)
plc.d/network
patch
|
blob
|
history
diff --git
a/plc.d/network
b/plc.d/network
index
c00f9d3
..
88ffec0
100755
(executable)
--- a/
plc.d/network
+++ b/
plc.d/network
@@
-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:5
9 mlhuang Exp $
+# $Id: network,v 1.
2 2006/04/25 21:18:1
9 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