blob: dcdd192b70d325927a1fa856dc2e00033d616d95 [file] [log] [blame]
##############################################################################
# Copyright (c) 2010, 2016 Ericsson AB
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Michael Josenhans
##############################################################################
#!/bin/bash
# Add vcan module to kernel
sudo modprobe vcan
# Setup of virtual can vcan0
sudo ip link add dev vcan0 type vcan
sudo ip link set vcan0 up
# Setup of virtual can vcan1
sudo ip link add dev vcan1 type vcan
sudo ip link set vcan1 up
# example configuration of a physical can bus interface
#sudo ip link set can0 up type can bitrate 1000000
ifconfig