4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
6 # using the rust version now, not sure the equivalent
7 # p="$(lsof -i tcp:31416 -Fp -a -c java | sed -rn 's/^p//p')" ||:
12 # so we don't hold open the /a fs
13 sudo rsync
-r --delete /a
/opt
/gnirehtet-rust-linux64
/opt
14 cd /opt
/gnirehtet-rust-linux64
16 # just running it in foreground so it's easier to kill etc.
20 # note, to kill it, you need to also kill
22 # and maybe unplug adb cable
23 # note, ping results in log message: dropping invalid packet
26 #./gnirehtet rt &>/tmp/rt &