* [PATCH] dracut-functions: cosmetic changes to inst_rules
@ 2010-07-05 9:25 Amadeusz Żołnowski
2010-07-09 13:48 ` Harald Hoyer
0 siblings, 1 reply; 2+ messages in thread
From: Amadeusz Żołnowski @ 2010-07-05 9:25 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
---
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dracut-functions: cosmetic changes to inst_rules
2010-07-05 9:25 [PATCH] dracut-functions: cosmetic changes to inst_rules Amadeusz Żołnowski
@ 2010-07-09 13:48 ` Harald Hoyer
0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2010-07-09 13:48 UTC (permalink / raw)
To: Amadeusz Żołnowski; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-09 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-05 9:25 [PATCH] dracut-functions: cosmetic changes to inst_rules Amadeusz Żołnowski
2010-07-09 13:48 ` Harald Hoyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.