forked from Samgisaninja/SuccessionRestore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·23 lines (21 loc) · 816 Bytes
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DEVICEIP=$1
if [ -z "$IDEVICEIP" ]
then
echo "\$IDEVICEIP not found, please type in your iDevice's ip address (local for localhost:2222)"
read IDEVICEIP
fi
if [ "$IDEVICEIP" == "local" ]
then
echo "Trying to move deb to device"
scp -p 2222 com.samgisaninja.SuccessionRestore.deb root@localhost:/tmp
echo "Trying to install deb"
ssh -p 2222 root@localhost "dpkg -i /tmp/com.samgisaninja.SuccessionRestore.deb && uicache --path /Applications/SuccessionRestore.app/"
echo "Success!"
else
echo "Trying to move deb to device"
scp com.samgisaninja.SuccessionRestore.deb root@$IDEVICEIP:/tmp
echo "Trying to install deb"
ssh root@$IDEVICEIP "dpkg -i /tmp/com.samgisaninja.SuccessionRestore.deb && uicache --path /Applications/SuccessionRestore.app/"
echo "Success!"
fi
## Changes made by nobbele/4ppleCracker