From: Tom Rini <tom_rini@mentor.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] udev 141: fix postinst check for /lib/udev/rules.d symlink
Date: Tue, 16 Nov 2010 14:26:38 -0700 [thread overview]
Message-ID: <4CE2F70E.90807@mentor.com> (raw)
In-Reply-To: <1289935265-26637-1-git-send-email-msmith@cbnco.com>
On 11/16/2010 12:21 PM, Michael Smith wrote:
> [ -d foo ] succeeds even if foo is a symlink to a directory.
>
> Signed-off-by: Michael Smith<msmith@cbnco.com>
Acked-by: Tom Rini <tom_rini@mentor.com>
> ---
> recipes/udev/udev_141.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes/udev/udev_141.bb b/recipes/udev/udev_141.bb
> index 816637f..7a34ada 100644
> --- a/recipes/udev/udev_141.bb
> +++ b/recipes/udev/udev_141.bb
> @@ -7,7 +7,7 @@ DEFAULT_PREFERENCE = "-1"
>
> require udev.inc
>
> -PR = "${INC_PR}.2"
> +PR = "${INC_PR}.3"
>
> SRC_URI += "file://mount.blacklist \
> file://run.rules \
> @@ -107,7 +107,7 @@ else
> fi
> update-rc.d $OPT udev-cache start 12 S .
>
> -if [ -d $D/lib/udev/rules.d ] ; then
> +if [ -e $D/lib/udev/rules.d ]&& [ ! -L $D/lib/udev/rules.d ] ; then
> echo "$D/lib/udev/rules.d is not a symlink, fixing that"
> mv $D/lib/udev/rules.d/* $D${sysconfdir}/udev/rules.d/
> rm -rf $D/lib/udev/rules.d
--
Tom Rini
Mentor Graphics Corporation
prev parent reply other threads:[~2010-11-16 21:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 19:21 [PATCH] udev 141: fix postinst check for /lib/udev/rules.d symlink Michael Smith
2010-11-16 21:26 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE2F70E.90807@mentor.com \
--to=tom_rini@mentor.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox