Skip to content

Commit

Permalink
Splitting out already reviewed cmdline parsing script.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Jul 18, 2012
1 parent e0d9e29 commit 20830fe
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 20 deletions.
28 changes: 28 additions & 0 deletions 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
}
21 changes: 1 addition & 20 deletions scripts/boot/9990-cmdline.sh → scripts/boot/9990-cmdline-old
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions scripts/boot/9990-main.sh
Expand Up @@ -20,6 +20,7 @@ Main ()

_CMDLINE="$(cat /proc/cmdline)"
Cmdline
Cmdline_old

case "${LIVE_DEBUG}" in
true)
Expand Down

0 comments on commit 20830fe

Please sign in to comment.