From: Harald Hoyer Date: Thu, 26 Jul 2012 17:12:40 +0000 (+0200) Subject: dracut-functions.sh:inst_rule_programs() fixed IMPORT{program} X-Git-Tag: 023~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65d1a8a4aee600f7d5016382dd351bf9b835327f;p=thirdparty%2Fdracut.git dracut-functions.sh:inst_rule_programs() fixed IMPORT{program} --- diff --git a/dracut-functions.sh b/dracut-functions.sh index fb28bdc57..49051faa4 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -781,8 +781,8 @@ inst_rule_programs() { dracut_install "$_bin" done fi - if grep -qE 'PROGRAM==?"[^ "]+' "$1"; then - for _prog in $(grep -E 'IMPORT==?"[^ "]+' "$1" | sed -r 's/.*IMPORT==?"([^ "]+).*/\1/'); do + if grep -qE 'IMPORT\{program\}==?"[^ "]+' "$1"; then + for _prog in $(grep -E 'IMPORT\{program\}==?"[^ "]+' "$1" | sed -r 's/.*IMPORT\{program\}==?"([^ "]+).*/\1/'); do if [ -x ${udevdir}/$_prog ]; then _bin=${udevdir}/$_prog else