Reorganizing components in source tree.
[live-boot-grml.git] / components / 0010-debug
diff --git a/components/0010-debug b/components/0010-debug
new file mode 100755 (executable)
index 0000000..cfb2fc8
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+#set -e
+
+Debug ()
+{
+       for _PARAMETER in ${LIVE_BOOT_CMDLINE}
+       do
+               case "${_PARAMETER}" in
+                       live-boot.debug|debug)
+                               LIVE_BOOT_DEBUG="true"
+                               ;;
+               esac
+       done
+
+       case "${LIVE_BOOT_DEBUG}" in
+               true)
+                       ;;
+
+               *)
+                       return 0
+                       ;;
+       esac
+
+       # Write the trace output
+       set -x
+}