 +        * so default to old /etc/inittab
 +        */
 +       useinittab=1; /* was 0 by default */
-+       kdbClose(); /* will not use the Keys database anymore */
++       kdbClose(&handle); /* will not use the Keys database anymore */
 +  }
 +
 +  if (useinittab)

+                * order, and feed the buf buffer for the original program
+                * business logic to parse
+                */
+               kdbGetValueByParent(entrykeyname,"runlevels",
+               bufcursor,sizeof(buf)-(bufcursor-buf));
+               strcat(buf,separator);
+               bufcursor=buf+strlen(buf);
+
+               kdbGetValueByParent(entrykeyname,"action",
+                       bufcursor,sizeof(buf)-(bufcursor-buf));
+               strcat(buf,separator);
+               bufcursor=buf+strlen(buf);
+	       kdbGetValueByParent(entrykeyname,"process",
+               bufcursor,sizeof(buf)-(bufcursor-buf));
+
+               strcat(buf,"\n"); /* original parser bellow needs this */

    *	We're done.
    */
+#ifdef ELEKTRA
+  if (!useinittab) kdbClose(&handle);
+  else
+#endif /* ELEKTRA */
+	  
