summaryrefslogtreecommitdiff
path: root/hald/linux/addons/addon-keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'hald/linux/addons/addon-keyboard.c')
-rw-r--r--hald/linux/addons/addon-keyboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hald/linux/addons/addon-keyboard.c b/hald/linux/addons/addon-keyboard.c
index a054ac97..13f4fd55 100644
--- a/hald/linux/addons/addon-keyboard.c
+++ b/hald/linux/addons/addon-keyboard.c
@@ -200,6 +200,12 @@ main (int argc, char **argv)
if ((ctx = libhal_ctx_init_direct (&error)) == NULL)
goto out;
+ dbus_error_init (&error);
+ if (!libhal_device_addon_is_ready (ctx, udi, &error)) {
+ goto out;
+ }
+
+
eventfp = fopen(device_file, "r");
if (!eventfp)