-help:
- printf("Usage: [-anpqrdVh]\n"
- " -q TYPE query database for the specified value:\n"
- " 'name' name of device node\n"
- " 'symlink' pointing to node\n"
- " 'mode' permissions of node\n"
- " 'owner' of node\n"
- " 'group' of node\n"
- " 'path' sysfs device path\n"
- " -p PATH sysfs device path used for query or chain\n"
- " -n NAME node name used for query\n"
- "\n"
- " -r print udev root\n"
- " -a print all SYSFS_attributes along the device chain\n"
- " -d dump whole database\n"
- " -V print udev version\n"
- " -h print this help text\n"
- "\n");
- return retval;
-}
-
-int main(int argc, char *argv[], char *envp[])
-{
- int retval;
-
- main_argv = argv;
- main_argc = argc;
-
- init_logging("udevinfo");
-
- /* initialize our configuration */
- udev_init_config();
-
- retval = process_options();
- if (retval != 0)
- exit(1);
- exit(0);