Linux Peak PCAN updated
This commit is contained in:
@ -1,11 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
# PCAN
|
||||
echo "can0"
|
||||
#modprobe pcan
|
||||
ifconfig can0 down
|
||||
ip link set can0 up type can bitrate 500000
|
||||
ip link set can0 txqueuelen 1000
|
||||
ip link set up can0
|
||||
ifconfig can0
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user