diff options
author | David Lamparter <equinox@diac24.net> | 2014-04-27 17:53:27 +0000 |
---|---|---|
committer | root <root@beaglebone.local.sublab.org> | 2014-04-27 17:57:40 +0000 |
commit | bc69d53152f7b8fd5ddd8afbee9ec88f47a19a0b (patch) | |
tree | 66d57ed263bfb273a31c690c96b8fda227829db1 /cethcan/start | |
parent | 08bac0acd7769ea6087454dd75e16a5b6ddf0afe (diff) |
Miscellaneous foo
Diffstat (limited to 'cethcan/start')
-rwxr-xr-x | cethcan/start | 19 |
1 files changed, 19 insertions, 0 deletions
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 + |