14 lines
193 B
Bash
Executable File
14 lines
193 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# 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
|