]> git.ipfire.org Git - network.git/commitdiff
Fix reading DEBUG option from configuration file.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Oct 2011 21:47:31 +0000 (21:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 31 Oct 2011 21:47:31 +0000 (21:47 +0000)
functions.util

index 7da58f7acbe97d67e2988498d92c6daffa5b3267..953df22a50905ce35aa1687d616993ea48fc700d 100644 (file)
@@ -164,7 +164,9 @@ function network_config_read() {
 
        config_read ${CONFIG_FILE}
 
-       DEBUG=${debug}
+       if [ -n "${debug}" ]; then
+               DEBUG=${debug}
+       fi
 }
 
 function network_config_write() {