start.sh 591 B

1234567891011121314151617
  1. #!/bin/sh
  2. #echo "123456" | sudo -S /home/zhouchao/EgoZJ/EgoSystem/build/EgoSystem
  3. #echo "看到这行字,说明添加自启动脚本成功。" > /home/zhouchao/EgoZJ/EgoSystem/build/1.log
  4. echo "nvidia" | sudo -S modprobe can
  5. echo "nvidia" | sudo -S modprobe can_raw
  6. echo "nvidia" | sudo -S modprobe mttcan
  7. echo "nvidia" | sudo -S ifconfig can0 down
  8. echo "nvidia" | sudo -S /sbin/ip link set can0 type can bitrate 500000
  9. echo "nvidia" | sudo -S ifconfig can0 up
  10. #nohup /home/nvidia/EgoZJ/EgoSystem/build/EgoSystem >/dev/null 2>&1 &
  11. /home/nvidia/EgoZJ/EgoSystem/build/EgoSystem
  12. #exit 0