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://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da1c03c8a063900d9f230f5e186bc6904bb1aaac;p=thirdparty%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 96ecbb049..a26949cf6 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