summaryrefslogtreecommitdiff
path: root/scripts/boot/0110-cmdline
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-02 17:46:14 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-19 00:04:10 +0200
commit20830fef5068d1afb31b1d26573eca2e04ded30e (patch)
tree4a7cdf6edd5a238fd693d20f100f1958e5daa7a2 /scripts/boot/0110-cmdline
parente0d9e2947873e7adc41ab20f8896254e14e67ca9 (diff)
downloadlive-boot-20830fef5068d1afb31b1d26573eca2e04ded30e.tar.gz
live-boot-20830fef5068d1afb31b1d26573eca2e04ded30e.zip
Splitting out already reviewed cmdline parsing script.
Diffstat (limited to 'scripts/boot/0110-cmdline')
-rwxr-xr-xscripts/boot/0110-cmdline28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/boot/0110-cmdline b/scripts/boot/0110-cmdline
new file mode 100755
index 0000000..d80c54f
--- /dev/null
+++ b/scripts/boot/0110-cmdline
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+#set -e
+
+Cmdline ()
+{
+ for _PARAMETER in ${_CMDLINE}
+ do
+ case "${_PARAMETER}" in
+ live-boot.read-only|read-only)
+ LIVE_READ_ONLY="true"
+ ;;
+
+ live-boot.swapon|swapon)
+ LIVE_SWAPON="true"
+ ;;
+
+ live-boot.verify-checksums|verify-checksums)
+ LIVE_VERIFY_CHECKSUMS="true"
+ ;;
+
+ # Special options
+ live-boot.debug|debug)
+ LIVE_DEBUG="true"
+ ;;
+ esac
+ done
+}