mirror of
https://github.com/systemd/systemd.git
synced 2025-03-24 14:50:17 +03:00
[PATCH] export DEVNAME regardless of the state of udev_dev_d
This commit is contained in:
parent
9af175553d
commit
bc0410fdb6
5
udev.c
5
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user