diff options
author | Greg KH <gregkh@suse.de> | 2005-07-14 15:24:59 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-07-14 15:24:59 -0700 |
commit | 04b90b7e256762bb6eecf0567ca33ceec03621f5 (patch) | |
tree | ac109967fba5fffae7cef88874a6e2b8bf705bc4 /extras/run_directory/udev_run_hotplugd.c | |
parent | 78e21e3ed4a038a8aa358eb109b6029ca9c3cdd1 (diff) |
Really commit the udev_run_devd changes...
Diffstat (limited to 'extras/run_directory/udev_run_hotplugd.c')
-rw-r--r-- | extras/run_directory/udev_run_hotplugd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extras/run_directory/udev_run_hotplugd.c b/extras/run_directory/udev_run_hotplugd.c index 54b6bf44e3..a21835ae4e 100644 --- a/extras/run_directory/udev_run_hotplugd.c +++ b/extras/run_directory/udev_run_hotplugd.c @@ -25,8 +25,8 @@ #include "../../udev_utils.h" #include "../../list.h" #include "../../logging.h" +#include "run_directory.h" -extern int run_directory(const char *dir, const char *suffix, const char *subsystem); #ifdef USE_LOG void log_message (int priority, const char *format, ...) @@ -55,6 +55,7 @@ void log_message (int priority, const char *format, ...) int main(int argc, char *argv[], char *envp[]) { + char dirname[NAME_SIZE]; const char *subsystem; int fd; @@ -71,6 +72,8 @@ int main(int argc, char *argv[], char *envp[]) dbg("running dev.d directory"); - run_directory("/etc/hotplug.d", ".hotplug", subsystem); + sprintf(dirname, "/etc/hotplug.d/%s", subsystem); + run_directory(dirname, ".hotplug", subsystem); + run_directory("/etc/hotplug.d/default", ".hotplug", subsystem); exit(0); } |