Add can-dev-mapping-helper
[AGL/meta-agl-demo.git] / recipes-kernel / sllin / files / start_lin_demo.sh
index 26f64c0..c7627ca 100755 (executable)
@@ -4,7 +4,8 @@
 if [ -c /dev/ttyUSB0 ]; then
     sleep 1
     /usr/bin/lin_config -c /etc/lin_config.conf -a sllin:/dev/ttyUSB0
-    pidof lin_config > /var/run/lin_config.pid
+    mkdir -p /run/lin_config/
+    pidof lin_config > /run/lin_config/lin_config.pid
     sleep 1
 else
     ip link add dev sllin0 type vcan