summaryrefslogtreecommitdiff
path: root/packages/udev/udev-118/init
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2008-05-06 22:27:38 +0000
committerStanislav Brabec <utx@penguin.cz>2008-05-06 22:27:38 +0000
commitf8795ef6e0a3bdb84b2ab5ad65136f3dc905263d (patch)
tree401c919d27bcff5699d8025be847c52bc499868c /packages/udev/udev-118/init
parent60c598e86c024c26b624bcadc74855f24e3fb9ff (diff)
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
Diffstat (limited to 'packages/udev/udev-118/init')
-rw-r--r--packages/udev/udev-118/init4
1 files changed, 2 insertions, 2 deletions
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