Fix flashstation breakage.
We need to reset 'writable' each time round the loop (i.e. for each device).
diff --git a/fastboot/usb_linux.c b/fastboot/usb_linux.c
index 088c23a..2ce53eb 100644
--- a/fastboot/usb_linux.c
+++ b/fastboot/usb_linux.c
@@ -203,7 +203,7 @@
DIR *busdir, *devdir;
struct dirent *de;
int fd;
- int writable = 1;
+ int writable;
busdir = opendir(base);
if(busdir == 0) return 0;
@@ -222,6 +222,7 @@
sprintf(devname, "%s/%s", busname, de->d_name);
// DBG("[ scanning %s ]\n", devname);
+ writable = 1;
if((fd = open(devname, O_RDWR)) < 0) {
// Check if we have read-only access, so we can give a helpful
// diagnostic like "adb devices" does.