风扇开关机命令
开:echo 1 > /sys/bus/platform/drivers/xgpio/fan_ctrl/state
关:echo 0 > /sys/bus/platform/drivers/xgpio/fan_ctrl/state
创建脚本
cat /home/youyeetoo/1.sh
#!/bin/bash
sudo echo 1 > /sys/bus/platform/drivers/xgpio/fan_ctrl/state
添加到开机自启动
# 安装cron
sudo apt install -y cron
@reboot /home/youyeetoo/1.sh