mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-06 16:24:54 +01:00
test for /var/run/usbmuxd
This commit is contained in:
1 parent
2990d9ab75
commit
a8a7fbdae8
1 file changed
+3
@@ -139,6 +139,9 @@ int palera1n(int argc, char *argv[]) {
|
|||||||
if (!checkrain_option_enabled(host_flags, host_option_device_info))
|
if (!checkrain_option_enabled(host_flags, host_option_device_info))
|
||||||
LOG(LOG_INFO, "Waiting for devices");
|
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(&pongo_thread, NULL, pongo_helper, NULL);
|
||||||
pthread_create(&dfuhelper_thread, NULL, dfuhelper, NULL);
|
pthread_create(&dfuhelper_thread, NULL, dfuhelper, NULL);
|
||||||
pthread_join(dfuhelper_thread, NULL);
|
pthread_join(dfuhelper_thread, NULL);
|
||||||
|
|||||||
Reference in new issue
Block a user