[yocto] How to install a service generated by update-rc.d?

Anders Darander anders at chargestorm.se
Wed Jul 6 02:39:28 PDT 2016


* S.Jaritz at esa-grimma.de <S.Jaritz at esa-grimma.de> [160706 11:22]:
> I want to start a service that generates Sockets for the CAN Modules. 
> Manually configuring the system is no problem, but I like to have it done 
> by yocto. Below I give the code of my recipe (socketcan.bb):

> SUMMARY = "the config for the can socket interface"
> SECTION = "CAN"
> LICENSE = "CLOSED"

> inherit update-rc.d

> RDEPENDS_${PN} = "initscripts"

> DEPENDS = "iproute2"

> SRC_URI = "file://can_if"

> INITSCRIPT_PARAMS = "start 02 2 3 4 5 . stop 01 0 1 6 ."
> INITSCRIPT_NAME = "can_if"

> CONFFILES_${PN} += "${sysconfdir}/init.d/can_if"

If this is the complete recipe, you never install can_if...

Cheers,
Anders

-- 
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB



More information about the yocto mailing list