From f8795ef6e0a3bdb84b2ab5ad65136f3dc905263d Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Tue, 6 May 2008 22:27:38 +0000 Subject: udev-118: fixed init failure if /dev/null exist: * script failed on mknod for some reason, so check /dev/null before calling mknod * separate mknod is needed, otherwise ugly errors can appear * /dev/null not being character device will still cause failure --- packages/udev/udev-118/init | 4 ++-- packages/udev/udev_118.bb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/udev/udev-118/init b/packages/udev/udev-118/init index a6b8fa174f..e44c675f2f 100644 --- a/packages/udev/udev-118/init +++ b/packages/udev/udev-118/init @@ -53,9 +53,9 @@ mount_tmpfs() { fi } -# I hate this hack. -- Md make_extra_nodes() { - mknod -m 666 /dev/null c 1 3 + [ -c /dev/null ] || mknod -m 666 /dev/null c 1 3 +# I hate this hack. -- Md if [ "$(echo /lib/udev/devices/*)" != "/lib/udev/devices/*" ]; then cp -a /lib/udev/devices/* /dev/ fi diff --git a/packages/udev/udev_118.bb b/packages/udev/udev_118.bb index 18479a3d13..20fef83d74 100644 --- a/packages/udev/udev_118.bb +++ b/packages/udev/udev_118.bb @@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod the hotplug package and requires a kernel not older than 2.6.12." RPROVIDES_${PN} = "hotplug" -PR = "r2" +PR = "r3" DEFAULT_PREFERENCE = "-118" -- cgit v1.2.3