树莓派可以通过下面几个命令来实现安全关机:
<span class="pln" style="font-family:Arial, 宋体;font-size:14px;">sudo shutdown </span><span class="pun" style="font-family:Arial, 宋体;font-size:14px;">-</span><span class="pln" style="font-family:Arial, 宋体;font-size:14px;">h now sudo halt sudo poweroff sudo init </span><span class="lit" style="font-family:Arial, 宋体;font-size:14px;color:#800000;">0</span>
上面四行代码都可以,执行一行都可以安全关机, ^_^
树莓派重启 定时重启方法:
<span class="pln" style="font-family:Arial, 宋体;font-size:14px;">sudo reboot shutdown </span><span class="pun" style="font-family:Arial, 宋体;font-size:14px;">-</span><span class="pln" style="font-family:Arial, 宋体;font-size:14px;">r now shutdown </span><span class="pun" style="font-family:Arial, 宋体;font-size:14px;">-</span><span class="pln" style="font-family:Arial, 宋体;font-size:14px;">r </span><span class="lit" style="font-family:Arial, 宋体;font-size:14px;color:#800000;">04</span><span class="pun" style="font-family:Arial, 宋体;font-size:14px;">:</span><span class="lit" style="font-family:Arial, 宋体;font-size:14px;color:#800000;">00</span><span class="pun" style="font-family:Arial, 宋体;font-size:14px;">:</span><span class="lit" style="font-family:Arial, 宋体;font-size:14px;color:#800000;">00</span><span class="pln" style="font-family:Arial, 宋体;font-size:14px;"> </span><span class="com" style="font-family:Arial, 宋体;font-size:14px;color:gray;">#定时重启在凌晨四点关闭重启</span>