Files
valere.dev/home/applications/android-wifi/android-wifi.sh
valere 28e668dc7e
All checks were successful
Deploy valere.dev / deploy (push) Successful in 36s
strangely need to update MAC address ...
2025-12-20 11:58:03 +00:00

11 lines
188 B
Bash

#!/bin/sh
if ! scrcpy; then
adb tcpip 5555 >/dev/null 2>&1 || true
ip=$(ip neighbor | grep -i "0c:52:03:1e:89:9a" | awk '{print $1}')
adb connect "${ip}:5555"
scrcpy
fi