]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - ugw/ppc/S50ugw
Scripts for running all experiments, getting and processing results
[can-benchmark.git] / ugw / ppc / S50ugw
index 01a0598b3e0837502fb047d6bfaf4661ef09301a..f9b28db5f3f97e0d22c16510a3211c4001bdb109 100644 (file)
@@ -10,7 +10,13 @@ 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/