---
 dracut-functions |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dracut-functions b/dracut-functions
index 0caf0d6..be6b2e9 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -331,13 +331,14 @@ find_rule() {
 # udev rules always get installed in the same place, so
 # create a function to install them to make life simpler.
 inst_rules() { 
-    local target=/etc/udev/rules.d
+    local target=/etc/udev/rules.d rule found
+
     inst_dir "/lib/udev/rules.d"
     inst_dir "$target"
     for rule in "$@"; do 
-       rule1=$(find_rule "$rule") && \
-           inst_simple "$rule1" "$target/${rule1##*/}" \
-           || dinfo "Skipping udev rule: $rule"
+        found=$(find_rule "$rule") && \
+            inst_simple "$found" "$target/${found##*/}" \
+            || dinfo "Skipping udev rule: $rule"
     done
 }
 
-- 
1.7.1

Attachment: signature.asc
Description: PGP signature

Reply via email to