All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] udev 141: fix postinst check for /lib/udev/rules.d symlink
@ 2010-11-16 19:21 Michael Smith
  2010-11-16 21:26 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Smith @ 2010-11-16 19:21 UTC (permalink / raw)
  To: openembedded-devel

[ -d foo ] succeeds even if foo is a symlink to a directory.

Signed-off-by: Michael Smith <msmith@cbnco.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
-- 
1.6.3.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] udev 141: fix postinst check for /lib/udev/rules.d symlink
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2010-11-16 21:26 UTC (permalink / raw)
  To: openembedded-devel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-16 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.