From a019e91a67f0488389487c6d93d5a58f25be6a61 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 21 Aug 2023 14:52:46 +0800 Subject: [PATCH] Update restore.sh just restart usbmuxd twice instead of doing stuff with ps aux --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 8c2b039..68e40fc 100755 --- a/restore.sh +++ b/restore.sh @@ -45,7 +45,7 @@ clean_sudo() { clean_usbmuxd() { clean_sudo - ps aux | awk '/usbmuxd/ {print "sudo kill "$2" 2>/dev/null"}' | bash + sudo systemctl restart usbmuxd sudo systemctl restart usbmuxd }