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