From: Harald Hoyer Subject: [PATCH 01/14] dracut-lib add getargs() Date: Wed, 15 Jul 2009 18:50:33 +0200 Message-ID: <1247676646-3837-2-git-send-email-harald@redhat.com> References: <1247676646-3837-1-git-send-email-harald@redhat.com> Return-path: In-Reply-To: <1247676646-3837-1-git-send-email-harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Harald Hoyer getargs returns a space seperated list with all values found for a key on the kernel command line --- modules.d/99base/dracut-lib.sh | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) 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