Linux Peak PCAN updated

This commit is contained in:
2023-07-12 06:14:29 -04:00
parent 005fd6478c
commit b3f5631a52
5 changed files with 14 additions and 48 deletions

View File

@ -1,6 +0,0 @@
#!/bin/sh
killall candump 2> /dev/null
ifconfig can0 down 2> /dev/null
ifconfig vcan0 down 2> /dev/null

View File

@ -1,16 +0,0 @@
#!/bin/sh
lsmod | grep ^pcan
lsmod | grep ^peak
# PCAN
echo "Can0"
modprobe pcan
ip link set can0 up type can bitrate 500000
ifconfig can0 up
# VCAN
echo "Vcan0"
modprobe vcan
ip link add dev vcan0 type vcan
ip link set up vcan0