#!/bin/sh #echo "123456" | sudo -S /home/zhouchao/EgoZJ/EgoSystem/build/EgoSystem #echo "看到这行字,说明添加自启动脚本成功。" > /home/zhouchao/EgoZJ/EgoSystem/build/1.log echo "nvidia" | sudo -S cpufreq-set -c 0 -g performance echo "nvidia" | sudo -S cpufreq-set -c 1 -g performance echo "nvidia" | sudo -S cpufreq-set -c 2 -g performance echo "nvidia" | sudo -S cpufreq-set -c 3 -g performance echo "nvidia" | sudo -S cpufreq-set -c 4 -g performance echo "nvidia" | sudo -S cpufreq-set -c 5 -g performance echo "nvidia" | sudo -S cpufreq-set -c 6 -g performance echo "nvidia" | sudo -S cpufreq-set -c 7 -g performance echo "nvidia" | sudo -S cpufreq-set -c 8 -g performance echo "nvidia" | sudo -S cpufreq-set -c 9 -g performance echo "nvidia" | sudo -S cpufreq-set -c 10 -g performance echo "nvidia" | sudo -S cpufreq-set -c 11 -g performance echo "nvidia" | sudo -S modprobe can echo "nvidia" | sudo -S modprobe can_raw echo "nvidia" | sudo -S modprobe mttcan echo "nvidia" | sudo -S ifconfig can0 down echo "nvidia" | sudo -S /sbin/ip link set can0 type can bitrate 250000 echo "nvidia" | sudo -S ifconfig can0 up echo "nvidia" | sudo -S ifconfig can1 down echo "nvidia" | sudo -S /sbin/ip link set can1 type can bitrate 500000 echo "nvidia" | sudo -S ifconfig can1 up echo "nvidia" | sudo -S sh -c ' echo "4096" > /sys/class/net/can0/tx_queue_len' echo "nvidia" | sudo -S sh -c ' echo "4096" > /sys/class/net/can1/tx_queue_len' #echo "123456" | sudo -S gnome-terminal -x bash -c "/home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/EgoSystem;exec bash" & #gnome-terminal -x bash -c "/home/nvidia/20240226ZGJ-PORT/EgoZJ/EgoSystem/build/EgoSystem;exec bash" & /home/nvidia/20240320ZGJ-CANUDP/EgoZJ/EgoSystem/build/EgoSystem exit 0