From 5ecbf957871f2b5ca8378028ee54f4f91ebe8e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=BA=E8=83=BD=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Fri, 11 Jul 2025 09:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=90=AFLinux=E4=B9=8B=E5=89=8D?= =?UTF-8?q?=E5=85=88=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE=E5=88=B0=E7=A1=AC?= =?UTF-8?q?=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StarAgent/MyStarClient.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/StarAgent/MyStarClient.cs b/StarAgent/MyStarClient.cs index 37e9a33c..8b88a01b 100644 --- a/StarAgent/MyStarClient.cs +++ b/StarAgent/MyStarClient.cs @@ -266,6 +266,9 @@ internal class MyStarClient : StarClient } else if (Runtime.Linux) { + // 重启Linux之前先同步数据到硬盘 + "sync".ShellExecute(); + // 多种方式重启Linux,先使用温和的方式 "systemctl".ShellExecute("reboot");