diff options
author | patmans@us.ibm.com <patmans@us.ibm.com> | 2003-10-14 23:32:17 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:01:40 -0700 |
commit | c27e69116d3ef0ea069a3c5146009ced08a0238b (patch) | |
tree | b90831fad9f7a0238e60e70ae66409bc5ca79fc4 /udev.c | |
parent | dbfc520c605dee3244dbbfd563e908901324689b (diff) |
[PATCH] add callout config type to udev
This patch adds a callout config type to udev, so external programs can be
called to get serial numbers or id's that are not available as a sysfs
attribute.
Diffstat (limited to 'udev.c')
-rw-r--r-- | udev.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -52,13 +52,19 @@ static char *get_device(void) return device; } -int main(int argc, char *argv[]) +char **main_argv; +char **main_envp; + +int main(int argc, char **argv, char **envp) { char *action; char *device; char *subsystem; int retval = -EINVAL; + main_argv = argv; + main_envp = envp; + if (argc != 2) { dbg ("unknown number of arguments"); goto exit; |