Lines Matching +full:otbr +full:- +full:agent
30 set -eux
34 sudo dbus-send --system \
35 --dest=org.freedesktop.DBus \
36 --type=method_call \
37 --print-reply \
39 org.freedesktop.DBus.ListNames | grep -q '"io.openthread.BorderRouter.wpan0"'
45 …UPSTART_JOB=otbr-agent sudo -E otbr-agent -d7 -v "spinel+hdlc+forkpty://$(command -v ot-rcp)?forkp…
49 if [[ "$(ps --no-headers -o s "${UPSTART_JOB_PID}")" != T ]]; then
50 echo 'otbr-agent is not in Stopped state'
54 echo 'Continue otbr-agent'
55 sudo pkill -SIGCONT -P "${UPSTART_JOB_PID}"
56 sudo kill -SIGCONT "${UPSTART_JOB_PID}"
59 if [[ "$(ps --no-headers -o s "${UPSTART_JOB_PID}")" == T ]]; then
60 echo 'otbr-agent did not continue'
63 sudo pkill -P "${UPSTART_JOB_PID}"
72 # re-run to ensure the script can run successfully multiple times
74 SOCAT_OUTPUT=/tmp/ot-socat
76 if ! command -v ot-rcp; then
77 third_party/openthread/repo/script/cmake-build simulation -DOT_COVERAGE=OFF
83 socat -d -d pty,raw,echo=0 pty,raw,echo=0 >/dev/null 2>$SOCAT_OUTPUT &
85 if [[ "$(head -n2 $SOCAT_OUTPUT | wc -l)" == 2 ]]; then
86 RCP_PTY=$(head -n1 $SOCAT_OUTPUT | grep -o '/dev/.\+')
87 HOST_PTY=$(head -n2 $SOCAT_OUTPUT | tail -n1 | grep -o '/dev/.\+')
97 ot-rcp 1 >"${RCP_PTY}" <"${RCP_PTY}" &
104 netstat -an | grep 80
106 sudo killall otbr-web || true
107 sudo killall otbr-agent || true
109 killall ot-rcp