Update rootfs_script.sh

pull/1681/head
Huang jinlong 2024-12-11 05:45:35 +08:00 committed by GitHub
parent 2d75d5d5f2
commit e1a6e19940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 1 deletions

View File

@ -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
#######################################################################################################################