diff --git a/dongle.c b/dongle.c index 3a3f49cfe9b93022ea694bfb4f4a7a33649c8d63..cee23182254bdad622fca6715296ec7d8148a4fd 100644 --- a/dongle.c +++ b/dongle.c @@ -651,13 +651,9 @@ int alert(struct ubus_context *ctx, struct ubus_object *obj, usb_path = (char *)blobmsg_data(tb[USB_PATH]); /* FIX THROUGH BASH SCRIPT INSTEAD... */ - if (strstr(usb_path, ":")) { - printf("contained :\n"); + if (strstr(usb_path, ":")) goto fail; - } - printf("did not contain :\n"); - printf("%s\n", usb_path); get_devices_from_path(usb_path); return 0; @@ -689,7 +685,6 @@ int update(struct ubus_context *ctx, struct ubus_object *obj, struct ubus_request_data *req, const char *method, struct blob_attr *msg) { - printf("lets update!\n"); get_devices(); tag_missing_devices();