Using the following recipe, there won't be any S61child in rc It seems that added packages are checking INITSCRIPT_NAME which is the parent. SUMMARY = "Test INITSCRIPT_PACKAGES" LICENSE = "CLOSED" do_install() { install -d ${D}${sysconfdir}/init.d echo -e "#!/bin/sh\n\necho FATHER" > ${WORKDIR}/father echo -e "#!/bin/sh\n\necho CHILD" > ${WORKDIR}/child install -m 0755 ${WORKDIR}/father ${D}${sysconfdir}/init.d/ install -m 0755 ${WORKDIR}/child ${D}${sysconfdir}/init.d/ } inherit update-rc.d INITSCRIPT_PACKAGES = "${PN} ${PN}-child" INITSCRIPT_NAME = "father" INITSCRIPT_PARAMS = "defaults 60" INITSCRIPT_NAME-child = "child" INITSCRIPT_PARAMS-child = "defaults 61"
Should be: INITSCRIPT_NAME_${PN}-child INITSCRIPT_PARAMS_${PN}-child = "defaults 61"