dracut-functions.sh:inst_rule_programs() fixed IMPORT{program}

master
Harald Hoyer 2012-07-26 19:12:40 +02:00
parent 187a8e08d5
commit 65d1a8a4ae
1 changed files with 2 additions and 2 deletions

View File

@ -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