From: Victor Lowther Date: Sat, 21 Feb 2009 16:24:20 +0000 (-0800) Subject: tiny fixup to getarg to make handling more arguments slightly easier X-Git-Tag: 0.1~423 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27994f9e28546e0bcf352b5217c54ff287183789;p=thirdparty%2Fdracut.git tiny fixup to getarg to make handling more arguments slightly easier This patch series adds support for some common mount arguments that have to be handled in the initramfs. It is also available at http://git.fnordovax.org/dracut/log/?h=handle-more-parameters --- diff --git a/init b/init index 358ef0262..ee1123c84 100755 --- a/init +++ b/init @@ -16,7 +16,7 @@ emergency_shell() getarg() { local o line for o in $CMDLINE; do - [ "${o%%=*}" = "$1" ] && { echo $o; break; } + [ "${o%%=*}" = "$1" ] && { echo $o; return 0; } done return 1 }