test for /var/run/usbmuxd

This commit is contained in:
Nick Chan committed 2023-03-14 09:32:20 +08:00
1 parent 2990d9ab75
commit a8a7fbdae8
1 file changed
+3
+3
View File
@@ -138,6 +138,9 @@ int palera1n(int argc, char *argv[]) {
if (!checkrain_option_enabled(host_flags, host_option_device_info))
LOG(LOG_INFO, "Waiting for devices");
if (access("/var/run/usbmuxd", F_OK) != 0)
LOG(LOG_WARNING, "/var/run/usbmuxd not found, normal mode device detection will not work.");
pthread_create(&pongo_thread, NULL, pongo_helper, NULL);
pthread_create(&dfuhelper_thread, NULL, dfuhelper, NULL);