From a8a7fbdae872bd876d4651951b1ef25487c8353d Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Tue, 14 Mar 2023 09:27:10 +0800 Subject: [PATCH] test for /var/run/usbmuxd --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index e1d8e9f..688e972 100644 --- a/src/main.c +++ b/src/main.c @@ -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);