On 07/05/2010 11:25 AM, Amadeusz Żołnowski wrote:
---
  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
  }

pushed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to