Skip to content

Commit c3b7d54

Browse files
committed
some linux fixes and other stuff
1 parent a3afd78 commit c3b7d54

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

restore.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ clean_usbmuxd() {
7373
fi
7474
sudo killall -9 usbmuxd usbmuxd2 2>/dev/null
7575
sleep 1
76+
if [[ $(command -v restorecon) ]]; then
77+
sudo restorecon /var/run/usbmuxd
78+
sudo systemctl restart usbmuxd
79+
fi
7680
if [[ $(command -v systemctl) ]]; then
7781
sudo systemctl restart usbmuxd
7882
elif [[ $(command -v rc-service) ]]; then
@@ -452,7 +456,7 @@ set_tool_paths() {
452456
trap "clean_usbmuxd" EXIT
453457
if [[ $(command -v gio) ]]; then
454458
log "gio detected. Unmounting all iOS devices with it"
455-
gio mount -l | awk '/gphoto2:\/\/Apple_Inc/ {print $NF}' | while read -r m; do gio mount -u "$m"; done
459+
gio mount -l | awk '/gphoto2:\/\/Apple_Inc|afc:\/\// {print $NF}' | while read -r m; do gio mount -u "$m"; done
456460
fi
457461
if [[ $othertmp == 0 ]]; then
458462
if [[ $(command -v systemctl) ]]; then
@@ -7582,7 +7586,7 @@ menu_ipa() {
75827586
else
75837587
print "* Sideload IPA is for iOS 6 and newer. Sideloading will require an Apple ID."
75847588
print "* Your Apple ID and password will only be sent to Apple servers."
7585-
print "* Make sure that the device is activated and connected to the Internet."
7589+
print "* Make sure that your iOS device is connected to the Internet."
75867590
if [[ $platform == "linux" ]] && (( device_det >= 9 )); then
75877591
print "* There are 2 options for sideloading, \"using Sideloader\" is recommended."
75887592
fi
@@ -7662,7 +7666,7 @@ menu_ipa() {
76627666
fi
76637667
print "* If you see an error but the app is in the home screen, the installation is most likely successful and the error can be safely ignored."
76647668
print "* If you see an error regarding certificate, you may need to revoke an existing certificate in your account."
7665-
print "* If you see an error regarding verification, make sure that your device is connected to the Internet."
7669+
print "* If you see an error regarding verification, make sure that your iOS device is connected to the Internet."
76667670
pause
76677671
;;
76687672
"List and Revoke Certificate" )
@@ -10875,7 +10879,7 @@ main() {
1087510879
esac
1087610880

1087710881
echo
10878-
print "* Save the terminal output now if needed. (macOS: Cmd+S, Linux: Ctrl+Shift+S)"
10882+
print "* Save the terminal output now if needed. (macOS: Cmd+S, Konsole: Ctrl+Shift+S)"
1087910883
print "* Legacy iOS Kit $version_current ($git_hash)"
1088010884
print "* Platform: $platform ($platform_ver - $platform_arch) $live_cdusb_str"
1088110885
echo

0 commit comments

Comments
 (0)