openthread-br: create state dir before starting
authorStijn Tintel <redacted>
Fri, 6 Feb 2026 12:22:23 +0000 (14:22 +0200)
committerStijn Tintel <redacted>
Thu, 19 Feb 2026 23:10:53 +0000 (01:10 +0200)
commitfe4c369692c67d5828460904172144da24de7207
tree53820a2f2290575ddfaedd45deb2a765c37ffc60
parentf7e3317515ae5ba9b4efc8dd56e88af8fb2cb02e
openthread-br: create state dir before starting

If the directory is missing, otbr-agent will fail to start, and it's not
immediately clear from the logs why:

netifd: Interface 'thread' is setting up now
: [NOTE]-AGENT---: Backbone interface: br-iot
otbr-agent[5682]: [NOTE]-AGENT---: Running 0.3.0
otbr-agent[5682]: [NOTE]-AGENT---: Thread version: 1.4.0
otbr-agent[5682]: [NOTE]-AGENT---: Thread interface: wpan0
otbr-agent[5682]: [NOTE]-AGENT---: Radio URL: spinel+hdlc_uart:///dev/ttyS1?uart-baudrate=921600
otbr-agent[5682]: [NOTE]-AGENT---: Radio URL: trel://br-iot
otbr-agent[5682]: [NOTE]-ILS-----: Infra link selected: br-iot
otbr-agent[5682]: [INFO]-RCP_HOS-: OpenThread log level changed to 4
otbr-agent[5682]: 49d.17:03:10.822 [I] P-SpinelDrive-: co-processor reset: RESET_POWER_ON
otbr-agent[5682]: 49d.17:03:10.822 [C] P-SpinelDrive-: Software reset co-processor successfully
otbr-agent[5682]: 49d.17:03:10.825 [C] Platform------: Init() at settings_file.cpp:65: No such file or directory
netifd: thread (5684): Command failed: Not found
netifd: Interface 'thread' is now down

Signed-off-by: Stijn Tintel <redacted>
net/openthread-br/files/openthread-proto.sh
git clone https://git.99rst.org/PROJECT