summaryrefslogtreecommitdiff
path: root/scripts/boot/0110-debug
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-25 16:56:36 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-25 17:25:04 +0200
commite8ced87a39fc0a748506f0663ac61449685d5957 (patch)
treed3b2d45f350e505b1ddbc66cee8e10cd4db8082a /scripts/boot/0110-debug
parenta6c72cbbbf6d4c5b9ce481788b56646bc2bd62c8 (diff)
downloadlive-boot-e8ced87a39fc0a748506f0663ac61449685d5957.tar.gz
live-boot-e8ced87a39fc0a748506f0663ac61449685d5957.zip
Factoring out debug into an own function.
Diffstat (limited to 'scripts/boot/0110-debug')
-rwxr-xr-xscripts/boot/0110-debug22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/boot/0110-debug b/scripts/boot/0110-debug
new file mode 100755
index 0000000..a74dcb7
--- /dev/null
+++ b/scripts/boot/0110-debug
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+#set -e
+
+Debug ()
+{
+ for _PARAMETER in ${_CMDLINE}
+ do
+ case "${_PARAMETER}" in
+ live-boot.debug|debug)
+ LIVE_DEBUG="true"
+ ;;
+ esac
+ done
+
+ if [ "${LIVE_DEBUG}" != "true" ]
+ then
+ return 0
+ fi
+
+ set -x
+}