git://git.onelab.eu
/
myplc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
httpd takes care of /var/log/plcapi.log and permissions
[myplc.git]
/
plc.d
/
network
diff --git
a/plc.d/network
b/plc.d/network
index
39d44e9
..
363a0f6
100755
(executable)
--- a/
plc.d/network
+++ b/
plc.d/network
@@
-7,8
+7,6
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-#
# Source function library and configuration
. /etc/plc.d/functions
# Source function library and configuration
. /etc/plc.d/functions
@@
-17,6
+15,8
@@
# Be verbose
set -x
# Be verbose
set -x
+[ "$PLC_HOSTS_ENABLED" -ne 1 ] && exit 0
+
case "$1" in
start)
MESSAGE=$"Generating network files"
case "$1" in
start)
MESSAGE=$"Generating network files"
@@
-51,6
+51,7
@@
case "$1" in
if [ -f /etc/hosts_plc.backup ] ; then
mv -f /etc/hosts_plc.backup /etc/hosts
fi
if [ -f /etc/hosts_plc.backup ] ; then
mv -f /etc/hosts_plc.backup /etc/hosts
fi
+ dialog "$MESSAGE"
result "$MESSAGE"
;;
esac
result "$MESSAGE"
;;
esac