summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/udev.c b/udev.c
index 0ee70529c4..a9da014ea6 100644
--- a/udev.c
+++ b/udev.c
@@ -209,9 +209,10 @@ int main(int argc, char *argv[], char *envp[])
}
/* run dev.d/ scripts if we created/deleted a node or changed a netif name */
- if (udev_dev_d && udev.devname[0] != '\0') {
+ if (udev.devname[0] != '\0') {
setenv("DEVNAME", udev.devname, 1);
- udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX);
+ if (udev_dev_d)
+ udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX);
}
} else if ((strncmp(devpath, "/devices/", 9) == 0)) {
if (strcmp(action, "add") == 0) {