init.c: drop /proc/sys/kernel/hotplug check

The hotplug helper /sbin/hotplug is now officially deprecated.
The control file /proc/sys/kernel/hotplug has moved to
/sys/kernel/uevent_helper, but it is expected to be disabled
on most systems in favor of udev and the netlink interface.
	-- http://lwn.net/Articles/166954/ (2006)
This commit is contained in:
Michael Shigorin 2014-08-15 21:29:55 +04:00
parent 59a8301023
commit 592b6794c0

5
init.c
View File

@ -421,11 +421,6 @@ int main(int argc, char **argv)
if (mkdirs_dev(".initramfs", "pts", "shm", NULL) < 0)
fatal("mkdir\n");
if ((fd = open("/proc/sys/kernel/hotplug", O_WRONLY, 0)) < 0 ||
write(fd, "\n", sizeof("\n")) < sizeof("\n"))
fatal("/proc/sys/kernel/hotplug\n");
close(fd);
klogpid = doklog();
spawn_hook(init_top);