[oe-commits] Koen Kooi : udev git: check if systemd files are present before symlinking

git version control git at git.openembedded.org
Thu May 26 20:00:56 UTC 2011


Module: openembedded.git
Branch: testing-next
Commit: 84696f215bbf81cb3def7e03e45dd66b0a85b1bb
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=84696f215bbf81cb3def7e03e45dd66b0a85b1bb

Author: Koen Kooi <koen at openembedded.org>
Date:   Wed May 25 18:08:53 2011 +0200

udev git: check if systemd files are present before symlinking

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 recipes/udev/udev_git.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/recipes/udev/udev_git.bb b/recipes/udev/udev_git.bb
index a0a5aed..113c550 100644
--- a/recipes/udev/udev_git.bb
+++ b/recipes/udev/udev_git.bb
@@ -109,7 +109,9 @@ do_install () {
 	install -m 0755 ${WORKDIR}/network.sh ${D}${sysconfdir}/udev/scripts
 
 	# disable udev-cache sysv script on systemd installs
-	ln -sf /dev/null ${D}/${base_libdir}/systemd/udev-cache.service
+	if [ -d {D}/${base_libdir}/systemd/ ] ; then
+		ln -sf /dev/null ${D}/${base_libdir}/systemd/udev-cache.service
+	fi
 }
 
 # Create the cache after checkroot has run





More information about the Openembedded-commits mailing list