]> err.no Git - systemd/commitdiff
[PATCH] export DEVNAME regardless of the state of udev_dev_d
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Tue, 14 Dec 2004 10:06:49 +0000 (11:06 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:13:48 +0000 (23:13 -0700)
udev.c

diff --git a/udev.c b/udev.c
index 0ee70529c4edb923b053c104570a9a1a1623532c..a9da014ea664e0b157aad52acff0ab66538a291f 100644 (file)
--- 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) {