mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 21:14:01 +08:00
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env expect
|
||||
spawn adb shell
|
||||
expect "#"
|
||||
send "cd data/openpilot\r"
|
||||
send "export TERM=xterm-256color\r"
|
||||
send "su comma\r"
|
||||
send "clear\r"
|
||||
interact
|
||||
@@ -275,7 +275,7 @@ function op_venv() {
|
||||
|
||||
function op_adb() {
|
||||
op_before_cmd
|
||||
op_run_command tools/adb_shell.sh
|
||||
op_run_command tools/scripts/adb_ssh.sh
|
||||
}
|
||||
|
||||
function op_check() {
|
||||
|
||||
7
tools/scripts/adb_ssh.sh
Executable file
7
tools/scripts/adb_ssh.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# this is a little nicer than "adb shell" since
|
||||
# "adb shell" doesn't do full terminal emulation
|
||||
adb forward tcp:2222 tcp:22
|
||||
ssh comma@localhost -p 2222
|
||||
Reference in New Issue
Block a user