mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 23:21:08 +03:00
[PATCH] export DEVNAME on remove event
Fix from Sjoerd Simons <sjoerd@spring.luon.net>, it got lost on the recent reorganization of the udev processing stages.
This commit is contained in:
parent
69d2dbd66f
commit
a97b06483e
7
udev.c
7
udev.c
@ -187,8 +187,11 @@ int main(int argc, char *argv[], char *envp[])
|
||||
/* get node from db, delete it*/
|
||||
retval = udev_remove_device(&udev);
|
||||
|
||||
/* run scripts */
|
||||
dev_d_execute(&udev, DEVD_DIR, DEVD_SUFFIX);
|
||||
/* run dev.d/ scripts if we're not instructed to ignore the event */
|
||||
if (udev.devname[0] != '\0') {
|
||||
setenv("DEVNAME", udev.devname, 1);
|
||||
dev_d_execute(&udev, DEVD_DIR, DEVD_SUFFIX);
|
||||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
|
Loading…
Reference in New Issue
Block a user