summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index a41c196991..26f3d846e1 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -811,6 +811,7 @@ static void handle_signal(struct udev *udev, int signo)
}
}
+#ifndef HAVE_LIBKMOD
static void static_dev_create_from_modules(struct udev *udev)
{
struct utsname kernel;
@@ -881,6 +882,7 @@ static void static_dev_create_from_modules(struct udev *udev)
fclose(f);
}
+#endif
/*
* read the kernel commandline, in case we need to get into debug mode
@@ -1033,7 +1035,9 @@ int main(int argc, char *argv[])
mkdir("/run/udev", 0755);
dev_setup(NULL);
+#ifndef HAVE_LIBKMOD
static_dev_create_from_modules(udev);
+#endif
/* before opening new files, make sure std{in,out,err} fds are in a sane state */
if (daemonize) {