From: Sangjung Woo Date: Tue, 15 Nov 2016 02:15:41 +0000 (+0900) Subject: Support both vcan & USB interface X-Git-Tag: accepted/tizen/3.0/ivi/20161116.024933^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef2211eb2bd0dbba794810ce4db719a447e89666;p=profile%2Fivi%2Fautomotive-message-broker.git Support both vcan & USB interface In order to support both vcan and USB CAN interface, this patch uses the unified 'samsungcan0' using udev rules. Change-Id: I810168a9d3006cd9d709d37b6404b836d69de4df Signed-off-by: Sangjung Woo --- diff --git a/packaging.in/ambd.service.systemd.tizen b/packaging.in/ambd.service.systemd.tizen index 37aab4e..3e943ef 100644 --- a/packaging.in/ambd.service.systemd.tizen +++ b/packaging.in/ambd.service.systemd.tizen @@ -10,8 +10,7 @@ Wants=bluetooth.service Type=dbus BusName=org.automotive.message.broker Environment=LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so -ExecStartPre=/usr/sbin/ip link add dev vcan0 type vcan -ExecStartPre=/usr/sbin/ip link set up vcan0 +ExecStartPre=/bin/bash -c "/usr/bin/can_init.sh vcan" ExecStart=/usr/bin/ambd -c /etc/ambd/config [Install]