Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / messaging / tests / echo / entrypoint.sh
1 #!/bin/bash
2
3 service dbus start
4 sleep 1
5 service avahi-daemon start
6 /usr/sbin/otbr-agent -I wpan0 spinel+hdlc+uart:///dev/ttyUSB0 &
7 sleep 1
8 ot-ctl panid 0x1234
9 ot-ctl ifconfig up
10 ot-ctl thread start
11
12 if [ "$1" = "responder" ]; then
13     chip-echo-responder
14 else
15     sleep infinity
16 fi