From: Daniel Hokka Zakrisson Date: Mon, 9 Nov 2009 01:13:25 +0000 (+0000) Subject: Make the network script disableable if manual setup of /etc/hosts is required. X-Git-Tag: MyPLC-4.3-31~4 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=ac6e04e7471b64c2b150d540f90bbd4b6c27e4d5 Make the network script disableable if manual setup of /etc/hosts is required. --- diff --git a/default_config.xml b/default_config.xml index 7a59c9d..48a7f03 100644 --- a/default_config.xml +++ b/default_config.xml @@ -124,6 +124,12 @@ $URL$ Network environment. + + Enable network configuration + true + Let PLC manage /etc/hosts + + Primary DNS Server 127.0.0.1 diff --git a/plc.d/network b/plc.d/network index 9283f58..f2c3dce 100755 --- a/plc.d/network +++ b/plc.d/network @@ -17,6 +17,8 @@ # Be verbose set -x +[ "$PLC_NET_ENABLED" -ne 1 ] && exit 0 + case "$1" in start) MESSAGE=$"Generating network files"