From: Harald Hoyer Date: Wed, 15 Jul 2009 16:24:01 +0000 (+0200) Subject: dracut-lib add getargs() X-Git-Tag: 0.5~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da1c03c8a063900d9f230f5e186bc6904bb1aaac;p=platform%2Fupstream%2Fdracut.git dracut-lib add getargs() getargs returns a space seperated list with all values found for a key on the kernel command line --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 96ecbb0..a26949c 100644 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -8,6 +8,20 @@ getarg() { return 1 } +getargs() { + local o line found + [ "$CMDLINE" ] || read CMDLINE