From bc69d53152f7b8fd5ddd8afbee9ec88f47a19a0b Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 27 Apr 2014 17:53:27 +0000 Subject: Miscellaneous foo --- cethcan/start | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 cethcan/start (limited to 'cethcan/start') diff --git a/cethcan/start b/cethcan/start new file mode 100755 index 0000000..33a9be2 --- /dev/null +++ b/cethcan/start @@ -0,0 +1,19 @@ +#!/bin/sh + +sleep 1 + +/sbin/modprobe c_can_platform +/sbin/modprobe can-raw + +sleep 1 + +/sbin/ip link set can0 down +/sbin/ip link set can0 type can tq 1500 prop-seg 2 phase-seg1 1 phase-seg2 2 sjw 1 +# /sbin/ip link set can0 type can bitrate 111111 +/sbin/ip link set can0 type can restart-ms 100 listen-only off berr-reporting on +/sbin/ip link set can0 promisc on up + +sleep 1 + +exec /root/spaceautomation/cethcan/cethcan + -- cgit v1.2.1