Splitting out already reviewed cmdline parsing script.
authorDaniel Baumann <daniel@debian.org>
Mon, 2 Jul 2012 15:46:14 +0000 (17:46 +0200)
committerDaniel Baumann <daniel@debian.org>
Wed, 18 Jul 2012 22:04:10 +0000 (00:04 +0200)
scripts/boot/0110-cmdline [new file with mode: 0755]
scripts/boot/9990-cmdline-old [moved from scripts/boot/9990-cmdline.sh with 94% similarity]
scripts/boot/9990-main.sh

diff --git a/scripts/boot/0110-cmdline b/scripts/boot/0110-cmdline
new file mode 100755 (executable)
index 0000000..d80c54f
--- /dev/null
@@ -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
+}
similarity index 94%
rename from scripts/boot/9990-cmdline.sh
rename to scripts/boot/9990-cmdline-old
index a3781da..7a6ce43 100755 (executable)
@@ -2,30 +2,11 @@
 
 #set -e
 
-Cmdline ()
+Cmdline_old ()
 {
        for _PARAMETER in ${_CMDLINE}
        do
                case "${_PARAMETER}" in
-                       live-boot.read-only|read-only)
-                               LIVE_READ_ONLY="true"
-                               ;;
-
-                       live-boot.swapon)
-                               LIVE_SWAPON="true"
-                               ;;
-
-                       live-boot.verify-checksums|verify-checksums)
-                               LIVE_VERIFY_CHECKSUMS="true"
-                               ;;
-
-                       # Special options
-                       live-boot.debug|debug)
-                               LIVE_DEBUG="true"
-                               ;;
-
-
-                       # parameters below need review (FIXME)
                        skipconfig)
                                NOFSTAB="true"
                                NONETWORKING="true"
index bd378eb..3ad6a72 100755 (executable)
@@ -20,6 +20,7 @@ Main ()
 
        _CMDLINE="$(cat /proc/cmdline)"
        Cmdline
+       Cmdline_old
 
        case "${LIVE_DEBUG}" in
                true)