summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-config/dev-mapping/dev-mapping/socketcan-slcan0.service.default
blob: e15539cf858faeebea19f711dd922e53c7825618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=SocketCAN serial interface slcan0 with a baudrate of 500000
Requires=networkd.service
After=networkd.service
  
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/modprobe slcan ; /usr/bin/slcan_attach -f -s6 -o /dev/ttyACM0 ; /usr/bin/slcand ttyACM0 slcan0 ; /sbin/ifconfig slcan0 up
ExecReload=/sbin/ifconfig slcan0 down ; /sbin/ifconfig slcan0 up
ExecStop=/sbin/ifconfig slcan0 down
 
[Install]
WantedBy=multi-user.target