summaryrefslogtreecommitdiff
path: root/scripts/boot/0110-debug
diff options
context:
space:
mode:
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
+}