1234567891011121314151617181920212223242526272829303132 |
- #!/bin/sh
- #echo "123456" | sudo -S /home/zhouchao/EgoZJ/EgoSystem/build/EgoSystem
- #echo "看到这行字,说明添加自启动脚本成功。" > /home/zhouchao/EgoZJ/EgoSystem/build/1.log
- echo "123456" | sudo -S cpufreq-set -c 0 -g performance
- echo "123456" | sudo -S cpufreq-set -c 1 -g performance
- echo "123456" | sudo -S cpufreq-set -c 2 -g performance
- echo "123456" | sudo -S cpufreq-set -c 3 -g performance
- echo "123456" | sudo -S cpufreq-set -c 4 -g performance
- echo "123456" | sudo -S cpufreq-set -c 5 -g performance
- echo "123456" | sudo -S cpufreq-set -c 6 -g performance
- echo "123456" | sudo -S cpufreq-set -c 7 -g performance
- echo "123456" | sudo -S modprobe can
- echo "123456" | sudo -S modprobe can_raw
- echo "123456" | sudo -S modprobe mttcan
- echo "123456" | sudo -S ifconfig can0 down
- echo "123456" | sudo -S /sbin/ip link set can0 type can bitrate 250000
- echo "123456" | sudo -S ifconfig can0 up
- echo "123456" | sudo -S ifconfig can1 down
- echo "123456" | sudo -S /sbin/ip link set can1 type can bitrate 500000
- echo "123456" | sudo -S ifconfig can1 up
- echo "123456" | sudo -S sh -c ' echo "4096" > /sys/class/net/can0/tx_queue_len'
- echo "123456" | sudo -S sh -c ' echo "4096" > /sys/class/net/can1/tx_queue_len'
- cansend can1 601#b3.10.ff
- /home/nvidia/ZJ_PRO/EgoSystem/build/EgoSystem
- exit 0
|