linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Yegor Yefremov <yegorslists@googlemail.com>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	gianluca <gianlucarenzi@eurekelettronica.it>
Cc: "linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: Socketcan correct way to bootup...
Date: Thu, 10 Jul 2014 01:45:04 +0200	[thread overview]
Message-ID: <53BDD400.70904@hartkopp.net> (raw)
In-Reply-To: <CAGm1_ku46OgLXoMPZqKMSQ06=vQV5MjbbvEKkBagJ1_C9g7BUg@mail.gmail.com>

For Debian systems I use this script:

https://gitorious.org/linux-can/can-misc/source/etc/can_if

Just copy can_if to /etc/init.d and say

update-rc.d can_if defaults

Btw. Debian changed to systemd. So far this script still run's with
the latest Debian unstable (which used systemd).

Regards,
Oliver


On 09.07.2014 14:44, Yegor Yefremov wrote:
> On Wed, Jul 9, 2014 at 2:36 PM, Marc Kleine-Budde <mkl@pengutronix.de> wrote:
>> On 07/09/2014 02:29 PM, Yegor Yefremov wrote:
>>>> BTW: you probably want to integrate your application into the automatic
>>>> startup via an init script or in new designs with systemd...and _not_
>>>> start it by hand.
>>>
>>> You can also use libsocketcan or libnl to configure CAN interface
>>> directly from your application.
>>
>> Good point.
>>
>> here's libsocketcan's API:
>>
>> http://git.pengutronix.de/?p=tools/libsocketcan.git;a=blob;f=include/libsocketcan.h;h=dc52053b824d1a8976126b043de4ee5d843c1401;hb=0c91940da1c16e01e8220e9fa18c703852ba6d1b
>>
>> http://www.pengutronix.de/software/libsocketcan/download/
> 
> If you're using Buildroot (http://buildroot.uclibc.org/) or OpenWrt
> (https://openwrt.org/) you'll find libsocketcan already being
> integrated into their repositories. I don't know about OpenEmbedded
> universe.
> 
> Yegor
> --
> To unsubscribe from this list: send the line "unsubscribe linux-can" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

      reply	other threads:[~2014-07-09 23:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <53BD1BE1.8050403@eurekelettronica.it>
2014-07-09 11:16 ` Socketcan correct way to bootup Marc Kleine-Budde
2014-07-09 12:29   ` Yegor Yefremov
2014-07-09 12:36     ` Marc Kleine-Budde
2014-07-09 12:44       ` Yegor Yefremov
2014-07-09 23:45         ` Oliver Hartkopp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BDD400.70904@hartkopp.net \
    --to=socketcan@hartkopp.net \
    --cc=gianlucarenzi@eurekelettronica.it \
    --cc=linux-can@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=yegorslists@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).