+/*
+ * We also want to clean up any symlinks that were created in create_node()
+ */
+static int delete_node(char *name)
+{
+ char filename[255];
+
+ strncpy(filename, UDEV_ROOT, sizeof(filename));
+ strncat(filename, name, sizeof(filename));
+
+ dbg("unlinking %s", filename);
+ return unlink(filename);
+}
+
+static int add_device(char *device, char type)