start.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 "123456" | sudo -S cpufreq-set -c 0 -g performance
  5. echo "123456" | sudo -S cpufreq-set -c 1 -g performance
  6. echo "123456" | sudo -S cpufreq-set -c 2 -g performance
  7. echo "123456" | sudo -S cpufreq-set -c 3 -g performance
  8. echo "123456" | sudo -S cpufreq-set -c 4 -g performance
  9. echo "123456" | sudo -S cpufreq-set -c 5 -g performance
  10. echo "123456" | sudo -S cpufreq-set -c 6 -g performance
  11. echo "123456" | sudo -S cpufreq-set -c 7 -g performance
  12. echo "123456" | sudo -S modprobe can
  13. echo "123456" | sudo -S modprobe can_raw
  14. echo "123456" | sudo -S modprobe mttcan
  15. echo "123456" | sudo -S ifconfig can0 down
  16. echo "123456" | sudo -S /sbin/ip link set can0 type can bitrate 250000
  17. echo "123456" | sudo -S ifconfig can0 up
  18. echo "123456" | sudo -S ifconfig can1 down
  19. echo "123456" | sudo -S /sbin/ip link set can1 type can bitrate 500000
  20. echo "123456" | sudo -S ifconfig can1 up
  21. echo "123456" | sudo -S sh -c ' echo "4096" > /sys/class/net/can0/tx_queue_len'
  22. echo "123456" | sudo -S sh -c ' echo "4096" > /sys/class/net/can1/tx_queue_len'
  23. cansend can1 601#b3.10.ff
  24. /home/nvidia/ZJ_PRO/EgoSystem/build/EgoSystem
  25. exit 0