ip link set up dev can0
ip link set can1 type can bitrate 1000000
ip link set up dev can1
+ifconfig can1 txqueuelen 100
set -x
# ifconfig eth0 192.168.2.3
# (echo boa; echo boa) | passwd
-params=$(sed -e 's/.* ugw=|\([^"]*\)|.*/\1/' /proc/cmdline)
+if grep -q kernelgw /proc/cmdline; then
+ cangw -A -s can0 -d can1
+ echo "Kernel GW started"
+ exit 0
+fi
+
+params=$(sed -ne 's/.* ugw=|\([^"]*\)|.*/\1/p' /proc/cmdline)
# mount -t debugfs none /sys/kernel/debug
# cd /sys/kernel/debug/tracing/