Make the network script disableable if manual setup of /etc/hosts is required.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Mon, 9 Nov 2009 01:13:25 +0000 (01:13 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Mon, 9 Nov 2009 01:13:25 +0000 (01:13 +0000)
default_config.xml
plc.d/network

index 7a59c9d..48a7f03 100644 (file)
@@ -124,6 +124,12 @@ $URL$
       <description>Network environment.</description>
 
       <variablelist>
+        <variable id="enabled" type="boolean">
+          <name>Enable network configuration</name>
+          <value>true</value>
+          <description>Let PLC manage /etc/hosts</description>
+        </variable>
+
        <variable id="dns1" type="ip">
          <name>Primary DNS Server</name>
          <value>127.0.0.1</value>
index 9283f58..f2c3dce 100755 (executable)
@@ -17,6 +17,8 @@
 # Be verbose
 set -x
 
+[ "$PLC_NET_ENABLED" -ne 1 ] && exit 0
+
 case "$1" in
     start)
        MESSAGE=$"Generating network files"