Yes - The installation of the can_if into /etc/init.d was missing.
By adding:
do_install () {
install -d ${D}${sysconfdir}/init.d
cat ${WORKDIR}/can_if | \
sed -e 's,/etc,${sysconfdir},g' \
-e 's,/usr/sbin,${sbindir},g' \
-e
This should deploy the file correctly.
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/can_if
${D}${sysconfdir}/init.d/can_if
}
On Mi, 2016-07-06 at 11:20 +0200, s.jar...@esa-grimma.de wrote:
> Hej,
>
> I want to start a service that
Oohhh I see, socketcan is your recipe, excuse me for my mistake.
Andres and Burton are right, you need to install that file, eg:
do_install() {
install -d "${D}${sysconfdir}/init.d/"
install -m 600 "${S}/can_if" "${D}${sysconfdir}/init.d/can_if"
}
Change the second line to point to
Isn't "libsocketcan" instead of only "socketcan"!?
Regards,
2016-07-06 6:45 GMT-03:00 Burton, Ross :
>
> On 6 July 2016 at 10:39, Anders Darander wrote:
>>
>> > CONFFILES_${PN} += "${sysconfdir}/init.d/can_if"
>>
>> If this is the complete recipe,
On 6 July 2016 at 10:39, Anders Darander wrote:
> > CONFFILES_${PN} += "${sysconfdir}/init.d/can_if"
>
> If this is the complete recipe, you never install can_if...
>
Which means the package is empty, which means it doesn't get generated,
which explains why you can't add
* s.jar...@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
Hej,
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