|
|
@ -7048,6 +7048,9 @@ int main(int argc, char *argv[]) |
|
|
|
fflush(stderr); |
|
|
|
fflush(stderr); |
|
|
|
quit(1, "libusb_init() failed"); |
|
|
|
quit(1, "libusb_init() failed"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef USE_USBUTILS |
|
|
|
|
|
|
|
mutex_init(&cgusb_lock); |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
mutex_init(&hash_lock); |
|
|
|
mutex_init(&hash_lock); |
|
|
@ -7135,11 +7138,6 @@ int main(int argc, char *argv[]) |
|
|
|
if (argc != 1) |
|
|
|
if (argc != 1) |
|
|
|
quit(1, "Unexpected extra commandline arguments"); |
|
|
|
quit(1, "Unexpected extra commandline arguments"); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_USBUTILS |
|
|
|
|
|
|
|
mutex_init(&cgusb_lock); |
|
|
|
|
|
|
|
usb_initialise(); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!config_loaded) |
|
|
|
if (!config_loaded) |
|
|
|
load_default_config(); |
|
|
|
load_default_config(); |
|
|
|
|
|
|
|
|
|
|
@ -7189,6 +7187,10 @@ int main(int argc, char *argv[]) |
|
|
|
if (want_per_device_stats) |
|
|
|
if (want_per_device_stats) |
|
|
|
opt_log_output = true; |
|
|
|
opt_log_output = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef USE_USBUTILS |
|
|
|
|
|
|
|
usb_initialise(); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifdef WANT_CPUMINE |
|
|
|
#ifdef WANT_CPUMINE |
|
|
|
#ifdef USE_SCRYPT |
|
|
|
#ifdef USE_SCRYPT |
|
|
|
if (opt_scrypt) |
|
|
|
if (opt_scrypt) |
|
|
|