summaryrefslogtreecommitdiff
path: root/udev/udevadm.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-04 10:34:48 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-04 10:34:48 +0200
commit60865f33a1fee5bddc8add3963f44691996d2ceb (patch)
treedecf965523eaf8e82f04cc5b5493f92ea89b94ea /udev/udevadm.c
parent8a3c06af21bbbe21d2517247ade2f0f9ae6ef432 (diff)
udevadm: move init from commands to udevadm
Diffstat (limited to 'udev/udevadm.c')
-rw-r--r--udev/udevadm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udev/udevadm.c b/udev/udevadm.c
index aa0befed3b..047365d973 100644
--- a/udev/udevadm.c
+++ b/udev/udevadm.c
@@ -125,6 +125,10 @@ int main(int argc, char *argv[])
const char *pos;
int rc;
+ logging_init("udevadm");
+ udev_config_init();
+ sysfs_init();
+
/* find command */
if (command != NULL)
for (i = 0; cmds[i].cmd != NULL; i++) {
@@ -169,5 +173,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "unknown command, try help\n\n");
rc = 2;
out:
+ sysfs_cleanup();
+ logging_close();
return rc;
}