This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if ! scrcpy; then
|
IP=$(ip route | grep default | awk '{print $3}')
|
||||||
adb tcpip 5555 >/dev/null 2>&1 || true
|
adb tcpip 5555 >/dev/null 2>&1
|
||||||
|
adb disconnect >/dev/null 2>&1
|
||||||
ip=$(ip neighbor | grep -i "0e:52:03:1e:89:9a" | awk '{print $1}')
|
sleep 1
|
||||||
|
adb connect $IP:5555
|
||||||
adb connect "${ip}:5555"
|
|
||||||
scrcpy
|
scrcpy
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user