udev-118: fixed init failure if /dev/null exist:
authorStanislav Brabec <utx@penguin.cz>
Tue, 6 May 2008 22:27:38 +0000 (22:27 +0000)
committerStanislav Brabec <utx@penguin.cz>
Tue, 6 May 2008 22:27:38 +0000 (22:27 +0000)
* 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
packages/udev/udev_118.bb

index a6b8fa1..e44c675 100644 (file)
@@ -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
index 18479a3..20fef83 100644 (file)
@@ -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"