udev 141: fix postinst check for /lib/udev/rules.d symlink
PATCH 1/1 udev 141: fix postinst check for /lib/udev/rules.d symlink
[ -d foo ] succeeds even if foo is a symlink to a directory.
Signed-off-by Michael Smith <[email protected]>
--- recipes/udev/udev_141.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/udev/udev_141.bb +2 -2
@@ -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
Signature · 1 line
1.6.3.2
Quoted 3 lines · Michael Smith
[ -d foo ] succeeds even if foo is a symlink to a directory.
Signed-off-by Michael Smith<[email protected]>
Acked-by Tom Rini <[email protected]>
Quoted 26 lines
--- recipes/udev/udev_141.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)recipes/udev/udev_141.bb +2
-2@@ -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
Signature · 2 lines
Tom Rini Mentor Graphics Corporation