更新 scripts/system_optimize.sh

This commit is contained in:
joy 2025-07-16 12:37:32 +08:00
parent 883ef8f3ef
commit 6aa373638e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ set_timezone_to_shanghai() {
synchronize_hardware_clock() {
log_info "同步硬件时钟和系统时钟..."
# 使用hwclock命令将系统时间同步到硬件时钟
hwclock --systohc
apt update && apt install util-linux -y && hwclock --systohc
log_info "硬件时钟和系统时钟已同步"
}