From fc191be1958b3d290e061b6af6f0f25ce27fcf1f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 19 Mar 2007 20:04:00 +0000 Subject: Work around the missing D-Bus system bus --- network/hal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'network') diff --git a/network/hal.c b/network/hal.c index 79e2b6e5..658e5f8c 100644 --- a/network/hal.c +++ b/network/hal.c @@ -31,6 +31,7 @@ #include #include "logging.h" +#include "dbus.h" #include "hal.h" @@ -42,7 +43,10 @@ int hal_init(DBusConnection *conn) if (!hal_ctx) return -ENOMEM; + conn = init_dbus(NULL, NULL, NULL); + if (libhal_ctx_set_dbus_connection(hal_ctx, conn) == FALSE) { + error("Failed to connect HAL via system bus"); libhal_ctx_free(hal_ctx); hal_ctx = NULL; return -EIO; -- cgit