fix(openthread-br): set privileged mode, don't auto-start services
This commit is contained in:
@@ -13,7 +13,7 @@ var_ram="${var_ram:-2048}"
|
||||
var_disk="${var_disk:-4}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_unprivileged="${var_unprivileged:-1}"
|
||||
var_unprivileged="${var_unprivileged:-0}"
|
||||
|
||||
header_info "$APP"
|
||||
variables
|
||||
|
||||
@@ -73,9 +73,11 @@ msg_ok "Configured Network"
|
||||
|
||||
msg_info "Configuring Services"
|
||||
cat <<EOF >/etc/default/otbr-agent
|
||||
# USB example: spinel+hdlc+uart:///dev/ttyACM0
|
||||
# TCP example: spinel+hdlc+uart://192.168.1.100:9999
|
||||
OTBR_AGENT_OPTS="-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0"
|
||||
EOF
|
||||
systemctl enable -q --now otbr-agent otbr-web
|
||||
systemctl enable -q otbr-agent otbr-web
|
||||
msg_ok "Configured Services"
|
||||
|
||||
motd_ssh
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"date_created": "2026-03-30",
|
||||
"type": "ct",
|
||||
"updateable": true,
|
||||
"privileged": false,
|
||||
"privileged": true,
|
||||
"interface_port": 80,
|
||||
"documentation": "https://openthread.io/guides/border-router",
|
||||
"website": "https://openthread.io/",
|
||||
@@ -33,15 +33,11 @@
|
||||
},
|
||||
"notes": [
|
||||
{
|
||||
"text": "Requires a Thread Radio Co-Processor (RCP) USB device passed through to the LXC container (e.g. /dev/ttyACM0). Edit /etc/default/otbr-agent to configure the RCP device path.",
|
||||
"text": "Requires a Thread Radio Co-Processor (RCP) device. USB: pass through to LXC (e.g. /dev/ttyACM0). TCP: use `spinel+hdlc+uart://IP:PORT` format.",
|
||||
"type": "warning"
|
||||
},
|
||||
{
|
||||
"text": "This container runs in privileged mode for network administration (iptables, ipset, tun device access).",
|
||||
"type": "info"
|
||||
},
|
||||
{
|
||||
"text": "Services are not started automatically on first boot. Connect your RCP device, configure /etc/default/otbr-agent, then run: systemctl start otbr-agent && systemctl start otbr-web",
|
||||
"text": "Services are enabled but not started at install. Configure `/etc/default/otbr-agent` with your RCP device, then run: `systemctl start otbr-agent && systemctl start otbr-web`",
|
||||
"type": "info"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user