use ifuse from path

fixes #529
This commit is contained in:
LukeZGD 2024-07-11 19:28:16 +08:00
parent 0c4d843176
commit e4ea778c84
3 changed files with 4 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -170,7 +170,6 @@ set_tool_paths() {
error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros" error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros"
fi fi
bspatch="$dir/bspatch" bspatch="$dir/bspatch"
ifuse="$(command -v ifuse)"
PlistBuddy="$dir/PlistBuddy" PlistBuddy="$dir/PlistBuddy"
sha1sum="$(command -v sha1sum)" sha1sum="$(command -v sha1sum)"
zenity="$(command -v zenity)" zenity="$(command -v zenity)"
@ -281,7 +280,6 @@ set_tool_paths() {
bspatch="$(command -v bspatch)" bspatch="$(command -v bspatch)"
cocoadialog="$(command -v cocoadialog)" cocoadialog="$(command -v cocoadialog)"
ifuse="$dir/ifuse"
ipwnder32="$dir/ipwnder32" ipwnder32="$dir/ipwnder32"
PlistBuddy="/usr/libexec/PlistBuddy" PlistBuddy="/usr/libexec/PlistBuddy"
sha1sum="$(command -v shasum) -a 1" sha1sum="$(command -v shasum) -a 1"
@ -311,6 +309,7 @@ set_tool_paths() {
gaster+="$dir/gaster" gaster+="$dir/gaster"
ideviceinfo="$dir/ideviceinfo" ideviceinfo="$dir/ideviceinfo"
idevicerestore+="$dir/idevicerestore" idevicerestore+="$dir/idevicerestore"
ifuse="$(command -v ifuse)"
ipwnder+="$dir/ipwnder" ipwnder+="$dir/ipwnder"
irecovery+="$dir/irecovery" irecovery+="$dir/irecovery"
irecovery2+="$dir/irecovery2" irecovery2+="$dir/irecovery2"
@ -5903,6 +5902,9 @@ menu_datamanage() {
print "* Note 3: Limited support for backups. Better use iCloud Backups instead" print "* Note 3: Limited support for backups. Better use iCloud Backups instead"
print "* Note 4: Backups do not include apps. Only some app data and settings" print "* Note 4: Backups do not include apps. Only some app data and settings"
print "* For dumping apps, go to: https://www.reddit.com/r/LegacyJailbreak/wiki/guides/crackingapps" print "* For dumping apps, go to: https://www.reddit.com/r/LegacyJailbreak/wiki/guides/crackingapps"
if [[ -z $ifuse ]]; then
warn "ifuse not installed. Mount Device will not work. Install ifuse in Homebrew/MacPorts or your package manager to fix this"
fi
while [[ -z "$mode" && -z "$back" ]]; do while [[ -z "$mode" && -z "$back" ]]; do
menu_items=("Backup" "Restore" "Mount Device" "Mount Device (Raw File System)" "Unmount Device" "Connect to SSH" "Erase All Content and Settings" "Go Back") menu_items=("Backup" "Restore" "Mount Device" "Mount Device (Raw File System)" "Unmount Device" "Connect to SSH" "Erase All Content and Settings" "Go Back")
echo echo