summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <unixabg@gmail.com>2010-03-14 12:07:15 -0500
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:05 +0100
commit773b60ef51f9f9eb656020f3be38f67e2f914033 (patch)
tree11ea084f67aefcdc3b7ac26b9e1662fcfe8b94cb
parentd1eb25959a9dad078a9d9ced81276b83d913641e (diff)
downloadvyos-live-build-773b60ef51f9f9eb656020f3be38f67e2f914033.tar.gz
vyos-live-build-773b60ef51f9f9eb656020f3be38f67e2f914033.zip
Added debug option on l-h.cgi cgi.
-rwxr-xr-xcgi/cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/cgi/cgi b/cgi/cgi
index a3bee9591..a9c0310bd 100755
--- a/cgi/cgi
+++ b/cgi/cgi
@@ -16,6 +16,12 @@ else
exit 1
fi
+# Turn on debug if enabled
+if [ "${_DEBUG}" = "enabled" ]
+then
+ set -x
+fi
+
# Sending http header
echo "Content-type: text/html"
echo