diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-12-14 11:06:49 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:13:48 -0700 |
commit | bc0410fdb64e295ae74d990185fa0bbc883e5432 (patch) | |
tree | 4f97006772d0aa0bcc095297afe5c7befd0dc195 /udev.c | |
parent | 9af175553d89d2a9fbc68d623f7ae213258e492b (diff) |
[PATCH] export DEVNAME regardless of the state of udev_dev_d
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |