Code Review
/
src
/
qa-testdefinitions.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitreview file for icefish branch
[src/qa-testdefinitions.git]
/
common
/
scripts
/
test_can_send_receive.sh
diff --git
a/common/scripts/test_can_send_receive.sh
b/common/scripts/test_can_send_receive.sh
index
06bde6f
..
150ce37
100755
(executable)
--- a/
common/scripts/test_can_send_receive.sh
+++ b/
common/scripts/test_can_send_receive.sh
@@
-13,6
+13,11
@@
if [ ! -e /sys/class/net/can1 ];then
exit 0
fi
exit 0
fi
+#Make sure always that the can interface is down before
+#starting the config step.
+ip link set can0 down
+ip link set can1 down
+
#config the can interfaces
ip link set can0 type can bitrate 50000
if [ $? -eq 0 ];then
#config the can interfaces
ip link set can0 type can bitrate 50000
if [ $? -eq 0 ];then