From: Harald Hoyer Date: Tue, 4 Aug 2009 09:36:06 +0000 (+0200) Subject: 90mdraid/parse-md.sh: removed bashism X-Git-Tag: 0.8~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=345f573546031b746430a7782e60cb4d9a372cdd;p=thirdparty%2Fdracut.git 90mdraid/parse-md.sh: removed bashism --- diff --git a/modules.d/90mdraid/parse-md.sh b/modules.d/90mdraid/parse-md.sh index 910fe4db1..d988f5e80 100644 --- a/modules.d/90mdraid/parse-md.sh +++ b/modules.d/90mdraid/parse-md.sh @@ -12,7 +12,7 @@ else [ -e "$f" ] || continue mv $f ${f}.bak while read line; do - if [ "${line/UUID CHECK//}" != "$line" ]; then + if [ "${line%%UUID CHECK}" != "$line" ]; then for uuid in $MD_UUID; do printf 'ENV{MD_UUID}=="%s", GOTO="do_md_inc"\n' $uuid done; @@ -29,4 +29,4 @@ fi if getarg rd_NO_MDIMSM; then info "rd_NO_MDIMSM: no MD RAID for imsm/isw raids" udevadm control --property=rd_NO_MDIMSM=1 -fi \ No newline at end of file +fi