]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: cosmetic changes to inst_rules
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Mon, 5 Jul 2010 09:25:21 +0000 (11:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 6 Jul 2010 08:19:02 +0000 (10:19 +0200)
dracut-functions

index 0caf0d621b8fd687b6e24172a78f1be1605a53c6..be6b2e98e8cdfbc1a7822bed925c8969fd87364d 100755 (executable)
@@ -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
 }