重启Linux之前先同步数据到硬盘

This commit is contained in:
智能大石头 2025-07-11 09:18:34 +08:00
parent 56988d02a9
commit 5ecbf95787
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ internal class MyStarClient : StarClient
}
else if (Runtime.Linux)
{
// 重启Linux之前先同步数据到硬盘
"sync".ShellExecute();
// 多种方式重启Linux先使用温和的方式
"systemctl".ShellExecute("reboot");