mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
run iproxy as sudo on linux
This commit is contained in:
1 file changed
+7
-2
+7
-2
@@ -284,7 +284,12 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then
|
||||
# Execute the commands once the rd is booted
|
||||
_usb_fix
|
||||
|
||||
"$dir"/iproxy 2222 22 &> /dev/null >> "$out" &
|
||||
if [ ! "$os" = 'Linux' ]; then
|
||||
sudo "$dir"/iproxy 2222 22 &> /dev/null >> "$out" &
|
||||
else
|
||||
"$dir"/iproxy 2222 22 &> /dev/null >> "$out" &
|
||||
fi
|
||||
|
||||
if ! ("$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "echo connected" &> /dev/null > "$out"); then
|
||||
echo "[*] Waiting for the ramdisk to finish booting"
|
||||
fi
|
||||
@@ -323,7 +328,7 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then
|
||||
sleep 2
|
||||
"$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/sbin/reboot" > "$out"
|
||||
sleep 1
|
||||
killall iproxy
|
||||
_kill_if_running iproxy
|
||||
_wait normal
|
||||
sleep 2
|
||||
|
||||
|
||||
Reference in new issue
Block a user