start.sh 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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 cpufreq-set -c 0 -g performance
  5. echo "nvidia" | sudo -S cpufreq-set -c 1 -g performance
  6. echo "nvidia" | sudo -S cpufreq-set -c 2 -g performance
  7. echo "nvidia" | sudo -S cpufreq-set -c 3 -g performance
  8. echo "nvidia" | sudo -S cpufreq-set -c 4 -g performance
  9. echo "nvidia" | sudo -S cpufreq-set -c 5 -g performance
  10. echo "nvidia" | sudo -S cpufreq-set -c 6 -g performance
  11. echo "nvidia" | sudo -S cpufreq-set -c 7 -g performance
  12. echo "nvidia" | sudo -S cpufreq-set -c 8 -g performance
  13. echo "nvidia" | sudo -S cpufreq-set -c 9 -g performance
  14. echo "nvidia" | sudo -S cpufreq-set -c 10 -g performance
  15. echo "nvidia" | sudo -S cpufreq-set -c 11 -g performance
  16. echo "nvidia" | sudo -S modprobe can
  17. echo "nvidia" | sudo -S modprobe can_raw
  18. echo "nvidia" | sudo -S modprobe mttcan
  19. echo "nvidia" | sudo -S ifconfig can0 down
  20. echo "nvidia" | sudo -S /sbin/ip link set can0 type can bitrate 250000
  21. echo "nvidia" | sudo -S ifconfig can0 up
  22. echo "nvidia" | sudo -S ifconfig can1 down
  23. echo "nvidia" | sudo -S /sbin/ip link set can1 type can bitrate 500000
  24. echo "nvidia" | sudo -S ifconfig can1 up
  25. echo "nvidia" | sudo -S sh -c ' echo "4096" > /sys/class/net/can0/tx_queue_len'
  26. echo "nvidia" | sudo -S sh -c ' echo "4096" > /sys/class/net/can1/tx_queue_len'
  27. #echo "123456" | sudo -S gnome-terminal -x bash -c "/home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/EgoSystem;exec bash" &
  28. #gnome-terminal -x bash -c "/home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/EgoSystem;exec bash" &
  29. /home/nvidia/20240320ZGJ-CANUDP/EgoZJ/EgoSystem/build/EgoSystem
  30. exit 0