#include "hwdb-util.h"
#include "udevadm.h"
-#include "util.h"
static const char *arg_test = NULL;
static const char *arg_root = NULL;
int c;
while ((c = getopt_long(argc, argv, "ust:r:Vh", options, NULL)) >= 0)
- switch(c) {
+ switch (c) {
case 'u':
arg_update = true;
break;
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Either --update or --test must be used.");
- if (arg_update) {
+ log_notice("udevadm hwdb is deprecated. Use systemd-hwdb instead.");
+
+ if (arg_update && !hwdb_bypass()) {
r = hwdb_update(arg_root, arg_hwdb_bin_dir, arg_strict, true);
if (r < 0)
return r;
}
if (arg_test)
- return hwdb_query(arg_test);
+ return hwdb_query(arg_test, NULL);
return 0;
}