Description: Fix two times run OnInit at startup
Author: Marcos Talau <talau@users.sourceforge.net>

Index: halevt-0.1.6.2/src/hal_interface.c
===================================================================
--- halevt-0.1.6.2.orig/src/hal_interface.c
+++ halevt-0.1.6.2/src/hal_interface.c
@@ -885,32 +885,7 @@
         exit(1);
     }
 
-    if ((all_udi = libhal_get_all_devices (hal_ctx, &num_device, &dbus_error)) == NULL)
-    {
-        DEBUG(_("No hal devices. Out of memory or an error occured in Hal"));
-        return;
-    }
-
-    WALK_NULL_ARRAY(current_udi, all_udi)
-    {
-        halevt_oninit *current_oninit;
-
-/*
-        DEBUG("Run OnInit for device: %s", (*current_udi));
-*/
-
-        WALK_LINKED_LIST(current_oninit, halevt_oninit_root)
-        {
-            if (halevt_true_tree(current_oninit->match, (*current_udi), NULL))
-            {
-                halevt_run_command(current_oninit->exec, (*current_udi), NULL);
-            }
-        }
-        /* construct the devices list */
-        halevt_device_list_add_device (hal_ctx, *current_udi);
-    }
-
-    libhal_free_string_array(all_udi);
+    halevt_run_oninit();
 }
 
 /*
Index: halevt-0.1.6.2/src/manager.c
===================================================================
--- halevt-0.1.6.2.orig/src/manager.c
+++ halevt-0.1.6.2/src/manager.c
@@ -414,8 +414,6 @@
         free (conffiles);
     }
 
-    halevt_run_oninit ();
-
     loop = g_main_loop_new(NULL, FALSE);
     if (!loop)
     {

