不知道为什么我添加进计划任务多数时候开机不启动风扇启停脚本有时候开机会启动,然后我改到/etc/rc.local里面开机自动执行去了,我新建了一个sh脚本改名0000.sh放到了/usr/local/bin/0000.sh这里,
#!/bin/bash
/usr/local/bin/fans.sh 60000 50000
然后下载了/etc/rc.local这文件,添加了倒数第二段
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.