Use the new variable.
[myplc.git] / plc.d / network
index 39d44e9..a994f4f 100755 (executable)
@@ -17,6 +17,8 @@
 # Be verbose
 set -x
 
+[ "$PLC_HOSTS_ENABLED" -ne 1 ] && exit 0
+
 case "$1" in
     start)
        MESSAGE=$"Generating network files"
@@ -51,6 +53,7 @@ case "$1" in
        if [ -f /etc/hosts_plc.backup ] ; then
            mv -f /etc/hosts_plc.backup /etc/hosts
        fi
+       dialog "$MESSAGE"
        result "$MESSAGE"
        ;;
 esac