Patchwork netcf: init script should be installed under /etc/init.d/

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Aug. 5, 2014, 7:24 a.m.
Message ID <1407223453-9512-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/77273/
State Accepted, archived
Headers show

Comments

rongqing.li@windriver.com - Aug. 5, 2014, 7:24 a.m.
From: Roy Li <rongqing.li@windriver.com>

init script should be installed under /etc/init.d/, not /etc/rc.d/init.d

Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
 meta-networking/recipes-support/netcf/netcf_git.bb |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb
index d6ca30f..979e45b 100644
--- a/meta-networking/recipes-support/netcf/netcf_git.bb
+++ b/meta-networking/recipes-support/netcf/netcf_git.bb
@@ -25,3 +25,7 @@  do_configure_prepend() {
 	./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib
 }
 
+do_install_append() {
+     mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir}
+     rm -rf ${D}${sysconfdir}/rc.d/
+}