fix(openthread-br): use systemd instead of init.d (#14942)

This commit is contained in:
Tom Frenzel
2026-06-05 12:04:34 +02:00
committed by GitHub
parent 34a3322544
commit 9bb6480135
2 changed files with 9 additions and 0 deletions

View File

@@ -38,6 +38,13 @@ function update_script() {
systemctl stop otbr-agent
msg_ok "Stopped Services"
if [[ -f /etc/init.d/otbr-agent ]] || [[ -f /etc/init.d/otbr-web ]]; then
msg_info "Removing legacy services"
rm -f /etc/init.d/otbr-agent /etc/init.d/otbr-web
systemctl daemon-reload
msg_ok "Removed legacy services"
fi
msg_info "Backing up Configuration"
cp /etc/default/otbr-agent /etc/default/otbr-agent.bak
msg_ok "Backed up Configuration"
@@ -61,6 +68,7 @@ function update_script() {
-DOTBR_WEB=ON \
-DOTBR_BORDER_ROUTING=ON \
-DOTBR_BACKBONE_ROUTER=ON \
-DOTBR_SYSTEMD_UNIT_DIR=/etc/systemd/system \
-DOT_FIREWALL=ON \
-DOT_POSIX_NAT64_CIDR="192.168.255.0/24" \
..

View File

@@ -64,6 +64,7 @@ $STD cmake -GNinja \
-DOTBR_WEB=ON \
-DOTBR_BORDER_ROUTING=ON \
-DOTBR_BACKBONE_ROUTER=ON \
-DOTBR_SYSTEMD_UNIT_DIR=/etc/systemd/system \
-DOT_FIREWALL=ON \
-DOT_POSIX_NAT64_CIDR="192.168.255.0/24" \
..