From: kay.sievers@vrfy.org Date: Tue, 14 Dec 2004 10:06:49 +0000 (+0100) Subject: [PATCH] export DEVNAME regardless of the state of udev_dev_d X-Git-Tag: 049~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc0410fdb64e295ae74d990185fa0bbc883e5432;p=systemd [PATCH] export DEVNAME regardless of the state of udev_dev_d --- diff --git a/udev.c b/udev.c index 0ee70529..a9da014e 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) {