diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-25 09:55:54 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:47:02 -0700 |
commit | 7757db1f859616171693ed9a54d1d16d3d5ed8e9 (patch) | |
tree | b85e4e2ab01e5b5df3d06bb7e1477c0f2298e27f /udev_start.c | |
parent | 9aa0485c97d1b02a39550e3be31c37520a0d0620 (diff) |
[PATCH] don't call dev.d/ scripts twice, if directory = subsystem
The /etc/dev.d/input/input.dev was called twice for /dev/input/mouse.
Skip the execution if we get a directory named after the subsystem.
Move UDEV_NO_DEVD where it belongs.
Diffstat (limited to 'udev_start.c')
-rw-r--r-- | udev_start.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_start.c b/udev_start.c index 129af4291a..1a86163cd5 100644 --- a/udev_start.c +++ b/udev_start.c @@ -109,7 +109,7 @@ static int add_device(char *devpath, char *subsystem) udev_add_device(&udev, class_dev); /* run dev.d/ scripts if we created a node or changed a netif name */ - if (udev.devname[0] != '\0') { + if (udev_dev_d && udev.devname[0] != '\0') { setenv("DEVNAME", udev.devname, 1); udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX); } |