summaryrefslogtreecommitdiff
path: root/udev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-14 11:06:49 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:13:48 -0700
commitbc0410fdb64e295ae74d990185fa0bbc883e5432 (patch)
tree4f97006772d0aa0bcc095297afe5c7befd0dc195 /udev.c
parent9af175553d89d2a9fbc68d623f7ae213258e492b (diff)
[PATCH] export DEVNAME regardless of the state of udev_dev_d
Diffstat (limited to 'udev.c')
-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) {