diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-04-04 09:03:27 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-04-04 09:04:27 +0900 |
commit | c404f25dcaa4e622a0fe9179bc79393a468093d1 (patch) | |
tree | cb53edb66a21a4463cdea12082fbd5b77a057035 /conf/files/usr/bin | |
parent | 1fed2c5a38fed8bc91bb6b8a08982303eb9c2e82 (diff) |
Revert "Change steering to systemd service for ces2019"
This reverts commit 1fed2c5a38fed8bc91bb6b8a08982303eb9c2e82.
Change-Id: Id83b437eef556b8d3fcd95503b9ff5b4d94bc7a5
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'conf/files/usr/bin')
-rwxr-xr-x | conf/files/usr/bin/candev.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/conf/files/usr/bin/candev.sh b/conf/files/usr/bin/candev.sh deleted file mode 100755 index fc47cb6..0000000 --- a/conf/files/usr/bin/candev.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -function execProc(){ - dev=$1 - - if [ "canCK" == ${dev:0:3}"CK" ]; then - modprobe can - ip link set $dev up type can bitrate 500000 - elif [ "vcanCK" == ${dev:0:4}"CK" ]; then - modprobe vcan - ip link add $dev type vcan - ip link set $dev up - elif [ "slcanCK" == ${dev:0:5}"CK" ]; then - modprobe slcan - systemctl start usbcan${dev:5:1} - ip link set $dev up - ip link - ifconfig $dev txqueuelen 1000 - fi -} - -if [ -e /etc/dev-mapping.conf ]; then - hs=`cat /etc/dev-mapping.conf | grep hs | cut -d '"' -f 2` - ls=`cat /etc/dev-mapping.conf | grep ls | cut -d '"' -f 2` -else - echo -e "[CANbus-mapping]\nhs=\"vcan0\"\nls=\"vcan1\"\n" > /etc/dev-mapping.conf - hs=vcan0 - ls=vcan1 -fi - -echo "candev "$hs -execProc $hs -if [ $hs != $ls ]; then - echo "candev "$ls - execProc $ls -fi |