update cvs

This commit is contained in:
valere
2025-11-30 09:36:09 +01:00
parent d2cd2affd4
commit f72038a76e
61 changed files with 1003 additions and 4569 deletions

View File

@@ -1,15 +1,10 @@
#!/bin/sh
# Try to connect via scrcpy first
if ! scrcpy; then
# If scrcpy fails, try the alternative method
echo "If scrcpy fails, try the alternative method"
adb tcpip 5555 >/dev/null 2>&1 || true
MAC="0c:52:03:1e:89:9a"
for i in $(seq 1 254); do ping -c1 -W1 192.168.1.$i >/dev/null 2>&1 & done; wait
line=$(ip neigh | grep -i "$MAC" | head -n1 || true)
ip=$(printf "%s" "$line" | awk '{print $1}')
echo "${ip}:5555"
ip=$(ip neighbor | grep -i "0e:52:03:1e:89:9a" | awk '{print $1}')
adb connect "${ip}:5555"
scrcpy
fi