From e1a6e19940a2af0b9677c5ef55b63f70018015e4 Mon Sep 17 00:00:00 2001 From: Huang jinlong <33887488+longcat99@users.noreply.github.com> Date: Wed, 11 Dec 2024 05:45:35 +0800 Subject: [PATCH] Update rootfs_script.sh --- general/scripts/rootfs_script.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/general/scripts/rootfs_script.sh b/general/scripts/rootfs_script.sh index ba465b65..1e77e787 100755 --- a/general/scripts/rootfs_script.sh +++ b/general/scripts/rootfs_script.sh @@ -147,7 +147,19 @@ chmod +x "${TARGET_DIR}/usr/sbin/mqtt_sub.sh" cp "${GITHUB_WORKSPACE}/general/longcat-openipc/passwd" "${TARGET_DIR}/etc/mosquitto/" ####################################################################################################################### - +#修改时间 +echo "Asia/Shanghai" | tee "${TARGET_DIR}/etc/timezone" +echo "CST-8" | tee "${TARGET_DIR}/etc/TZ" + +cat << EOF | tee "${TARGET_DIR}/etc/ntp.conf" +server ntp.aliyun.com iburst +server time1.aliyun.com iburst +server time2.aliyun.com iburst +server time3.aliyun.com iburst +EOF + + +#######################################################################################################################