[meta-networking] frr: install correct initscript

Message ID 20220413014256.991092-1-yi.zhao@windriver.com
State New
Headers show
Series [meta-networking] frr: install correct initscript | expand

Commit Message

Yi Zhao April 13, 2022, 1:42 a.m. UTC
Install frrinit.sh as initscript rather than frr.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-networking/recipes-protocols/frr/frr_8.2.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-networking/recipes-protocols/frr/frr_8.2.2.bb b/meta-networking/recipes-protocols/frr/frr_8.2.2.bb
index b1e2e55b5..91e306f08 100644
--- a/meta-networking/recipes-protocols/frr/frr_8.2.2.bb
+++ b/meta-networking/recipes-protocols/frr/frr_8.2.2.bb
@@ -95,7 +95,7 @@  do_install:append:class-target () {
 
     if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
         install -d ${D}${sysconfdir}/init.d
-        install -m 0755 ${B}/tools/frr ${D}${sysconfdir}/init.d
+        install -m 0755 ${B}/tools/frrinit.sh ${D}${sysconfdir}/init.d/frr
 
         install -d ${D}${sysconfdir}/default/volatiles
         echo "d frr frr 0755 ${localstatedir}/run/frr none" \