Hello
I have the below's simple recipe(starting a script in sysV runlevel 2), but when I add it to the image with
IMAGE_INSTALL += "canlogger"
in my local.conf, most of the contents of /etc gets removed/overwritten making the system unbootable.
Does someone sees something wrong?
#####
DESCRIPTION = "Start CAN services logging"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PR = "r0"
SRC_URI += "file://canlogger"
INITSCRIPT_NAME = "canlogger"
INITSCRIPT_PARAMS = "start 98 2 ."
do_install() {
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/canlogger ${D}${sysconfdir}/init.d/canlogger
}
inherit update-rc.d
#####