Skip to content

Commit e65db6d

Browse files
committed
Update restore.sh
1 parent ef9af03 commit e65db6d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

restore.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ clean() {
6464
rm -rf "$(dirname "$0")/iP"*/
6565
if [[ $platform == "macos" && $(ls "$(dirname "$0")" | grep -v tmp$$ | grep -c tmp) == 0 &&
6666
$no_finder != 1 ]]; then
67-
killall -CONT AMPDevicesAgent AMPDeviceDiscoveryAgent MobileDeviceUpdater
67+
killall -CONT AMPDevicesAgent AMPDeviceDiscoveryAgent MobileDeviceUpdater 2>/dev/null
6868
fi
6969
}
7070

@@ -104,7 +104,7 @@ clean_usbmuxd() {
104104
if [[ $(command -v systemctl) ]]; then
105105
$sudo systemctl restart usbmuxd 2>/dev/null
106106
elif [[ $(command -v rc-service) ]]; then
107-
$sudo rc-service usbmuxd start
107+
$sudo rc-service usbmuxd start 2>/dev/null
108108
fi
109109
}
110110

@@ -506,7 +506,7 @@ set_tool_paths() {
506506
if [[ $(command -v systemctl) ]]; then
507507
$sudo systemctl stop usbmuxd 2>/dev/null
508508
elif [[ $(command -v rc-service) ]]; then
509-
$sudo rc-service usbmuxd zap
509+
$sudo rc-service usbmuxd zap 2>/dev/null
510510
else
511511
$sudo killall -9 usbmuxd usbmuxd2 2>/dev/null
512512
fi
@@ -2275,8 +2275,8 @@ device_enter_mode() {
22752275
print "* Include this in your log/screenshot for pwning assistance if needed."
22762276
fi
22772277

2278-
print "* If pwning fails and gets stuck, you can press Ctrl+C to cancel, then re-enter DFU and retry."
22792278
log "Placing device to pwnDFU mode using $tool"
2279+
print "* If pwning fails and gets stuck, you can press Ctrl+C to cancel, then re-enter DFU and retry."
22802280
if [[ $tool == "gaster" ]]; then
22812281
$gaster pwn
22822282
tool_pwned=$?

0 commit comments

Comments
 (0)