start.sh 1.5 KB

123456789101112131415161718192021222324252627282930313233
  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 "gansri135" | sudo -S cpufreq-set -c 0 -g performance
  5. echo "gansri135" | sudo -S cpufreq-set -c 1 -g performance
  6. echo "gansri135" | sudo -S cpufreq-set -c 2 -g performance
  7. echo "gansri135" | sudo -S cpufreq-set -c 3 -g performance
  8. echo "gansri135" | sudo -S cpufreq-set -c 4 -g performance
  9. echo "gansri135" | sudo -S cpufreq-set -c 5 -g performance
  10. echo "gansri135" | sudo -S cpufreq-set -c 6 -g performance
  11. echo "gansri135" | sudo -S cpufreq-set -c 7 -g performance
  12. #echo "gansri135" | sudo -S cpufreq-set -c 8 -g performance
  13. #echo "gansri135" | sudo -S cpufreq-set -c 9 -g performance
  14. #echo "gansri135" | sudo -S cpufreq-set -c 10 -g performance
  15. #echo "gansri135" | sudo -S cpufreq-set -c 11 -g performance
  16. echo "gansri135" | sudo -S modprobe can
  17. echo "gansri135" | sudo -S modprobe can_raw
  18. echo "gansri135" | sudo -S modprobe mttcan
  19. echo "gansri135" | sudo -S ifconfig can0 down
  20. echo "gansri135" | sudo -S /sbin/ip link set can0 type can bitrate 250000
  21. echo "gansri135" | sudo -S ifconfig can0 up
  22. echo "gansri135" | sudo -S ifconfig can1 down
  23. echo "gansri135" | sudo -S /sbin/ip link set can1 type can bitrate 500000
  24. echo "gansri135" | sudo -S ifconfig can1 up
  25. #nohup /home/nvidia/EgoZJ/EgoSystem/build/EgoSystem >/dev/null 2>&1 &
  26. #/home/nvidia/EgoZJ/EgoSystem/build/EgoSystem
  27. #exit 0