summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-05-02 05:23:02 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-05-02 05:23:02 +0200
commita00bdfa16b9bac7e4c31fcd31b4003d5a18f6d09 (patch)
treea9469e3ee87c5954fa77f8bbc4c8f23ca3af2f9e /udev
parent998d9788e76db8d323e4192b23d621fc5c65be4d (diff)
udevd: revert initial device node creation
Diffstat (limited to 'udev')
-rw-r--r--udev/udevd.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/udev/udevd.c b/udev/udevd.c
index d1a226673e..1aa50eb74c 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -708,28 +708,6 @@ static void export_initial_seqnum(struct udev *udev)
}
}
-/* create the nodes the we depend on to properly start up */
-static void setup_initial_nodes(struct udev *udev)
-{
- struct udev_device *dev;
-
- dev = udev_device_new_from_subsystem_sysname(udev, "mem", "null");
- if (dev != NULL) {
- udev_node_mknod(dev, "null", makedev(0,0), 0666, 0, 0);
- udev_device_unref(dev);
- }
- dev = udev_device_new_from_subsystem_sysname(udev, "mem", "kmsg");
- if (dev != NULL) {
- udev_node_mknod(dev, "kmsg", makedev(0,0), 0660, 0, 0);
- udev_device_unref(dev);
- }
- dev = udev_device_new_from_subsystem_sysname(udev, "tty", "console");
- if (dev != NULL) {
- udev_node_mknod(dev, "console", makedev(0,0), 0600, 0, 0);
- udev_device_unref(dev);
- }
-}
-
static void startup_log(struct udev *udev)
{
FILE *f;
@@ -836,8 +814,6 @@ int main(int argc, char *argv[])
goto exit;
}
- setup_initial_nodes(udev);
-
/* make sure std{in,out,err} fd's are in a sane state */
fd = open("/dev/null", O_RDWR);
if (fd < 0) {