From 9bb64801354e3de93ad4202b079f0076d385353d Mon Sep 17 00:00:00 2001 From: Tom Frenzel <40773830+tomfrenzel@users.noreply.github.com> Date: Fri, 5 Jun 2026 12:04:34 +0200 Subject: [PATCH] fix(openthread-br): use systemd instead of init.d (#14942) --- ct/openthread-br.sh | 8 ++++++++ install/openthread-br-install.sh | 1 + 2 files changed, 9 insertions(+) diff --git a/ct/openthread-br.sh b/ct/openthread-br.sh index e9641e4cc..f63fb8421 100644 --- a/ct/openthread-br.sh +++ b/ct/openthread-br.sh @@ -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" \ .. diff --git a/install/openthread-br-install.sh b/install/openthread-br-install.sh index 8e68e3250..a36c5fe1f 100644 --- a/install/openthread-br-install.sh +++ b/install/openthread-br-install.sh @@ -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" \ ..