mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
start iproxy before checking
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -604,6 +604,8 @@ fi
|
||||
|
||||
if [ -f ".tweaksinstalled" ]; then
|
||||
_wait normal
|
||||
sleep 2
|
||||
"$dir"/iproxy 2222 22 &
|
||||
|
||||
if ! ("$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "echo connected" &> /dev/null); then
|
||||
echo "[*] Waiting for sshd to start"
|
||||
@@ -622,14 +624,12 @@ if [ -f ".tweaksinstalled" ]; then
|
||||
if [[ "$@" == *"--safe-mode"* ]]; then
|
||||
if [ -f binaries/postbootnosub.sh ]; then
|
||||
echo "[*] Running postboot without Substitute"
|
||||
"$dir"/iproxy 2222 22 &
|
||||
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postbootnosub.sh
|
||||
"$dir"/sshpass -p 'alpine' ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/postbootnosub.sh"
|
||||
fi
|
||||
else
|
||||
if [ -f binaries/postboot.sh ]; then
|
||||
echo "[*] Running postboot"
|
||||
"$dir"/iproxy 2222 22 &
|
||||
scp -P2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET binaries/postboot.sh mobile@localhost:~/postboot.sh
|
||||
"$dir"/sshpass -p 'alpine' ssh -p2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=QUIET mobile@localhost "echo 'alpine' | sudo -S sh ~/postboot.sh"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user