Add function to connect to Feria
This commit is contained in:
parent
ebc4254771
commit
395490956a
1 changed files with 6 additions and 0 deletions
6
bashrc.d/feria_scrcp_function
Normal file
6
bashrc.d/feria_scrcp_function
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
function feria_scrcpy() {
|
||||
feria_mac='84:cf:bf:93:05:00'
|
||||
feria_ip=$(arp -an | grep "${feria_mac}" | awk '{print($2)}' | sed 's/[\)\(]//g')
|
||||
adb connect "${feria_ip}:5555" && scrcpy "--tcpip=${feria_ip}:5555"
|
||||
}
|
Loading…
Reference in a new issue