chiark / gitweb /
[PATCH] add install and uninstall the etc/dev.d/net/hotplug.dev file to the Makefile
[elogind.git] / dev_d.c
diff --git a/dev_d.c b/dev_d.c
index 0910e4d323e344246b590f93d7a4799355645ff6..483ceb4b1b983f398831a46d8db41aa48f88bd18 100644 (file)
--- a/dev_d.c
+++ b/dev_d.c
@@ -61,7 +61,7 @@ static int run_program(char *name)
  *     subsystem/
  *     default/
  */
-void dev_d_send(struct udevice *dev, char *subsystem)
+void dev_d_send(struct udevice *dev, char *subsystem, char *devpath)
 {
        char dirname[256];
        char devname[NAME_SIZE];
@@ -74,8 +74,8 @@ void dev_d_send(struct udevice *dev, char *subsystem)
                strfieldcat(devname, dev->name);
        } else if (dev->type == 'n') {
                strfieldcpy(devname, dev->name);
+               setenv("DEVPATH", devpath, 1);
        }
-       setenv("DEVNODE", devname, 1); /* FIXME: bad name for netif */
        setenv("DEVNAME", devname, 1);
        dbg("DEVNAME='%s'", devname);