reboot

This commit is contained in:
Leon 2021-07-07 23:59:55 +08:00
parent ecfe62af63
commit 1f8a776856

View File

@ -1,8 +0,0 @@
// 系统重启脚本,谨慎使用,无法取消
const countdown = 30 // 重启等待时间,单位:秒
console.log('操作系统将在', countdown, '后重启')
setTimeout(()=>{
$exec('reboot', data=>console.log(data))
}, countdown*1000)