From 87d690b92c9465408b8df56b16922a534049c229 Mon Sep 17 00:00:00 2001 From: Ing Date: Thu, 15 May 2025 13:26:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=20VMware=20=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4=E5=90=8C=E6=AD=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/init.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/initrd/opt/rr/init.sh b/files/initrd/opt/rr/init.sh index 627e5c51..5f68d4d4 100755 --- a/files/initrd/opt/rr/init.sh +++ b/files/initrd/opt/rr/init.sh @@ -12,6 +12,12 @@ set -e . "${WORK_PATH}/include/functions.sh" . "${WORK_PATH}/include/addons.sh" +if type -p vmware-toolbox-cmd; then + if [ ! "Enabled" = "$(vmware-toolbox-cmd timesync status 2>/dev/null)" ]; then + vmware-toolbox-cmd timesync enable >/dev/null 2>&1 || true + fi +fi + [ -z "${LOADER_DISK}" ] && die "$(TEXT "Loader is not init!")" checkBootLoader || die "$(TEXT "The loader is corrupted, please rewrite it!")"