更新 scripts/system_optimize.sh

This commit is contained in:
joy 2025-07-16 12:43:41 +08:00
parent 6aa373638e
commit 9c4d339e74
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命令将系统时间同步到硬件时钟
apt update && apt install util-linux -y && hwclock --systohc
apt update && apt install util-linux-extra -y && hwclock --systohc
log_info "硬件时钟和系统时钟已同步"
}