arc: more rewrite for time

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-05 23:27:53 +02:00
parent 949ab7fe2e
commit 261fbae2af
3 changed files with 4 additions and 5 deletions

View File

@ -1219,7 +1219,7 @@ function sysinfo() {
TEXT+="\n CPU Scaling: \Zb${CPUFREQ}\Zn"
TEXT+="\n Secure Boot: \Zb${SECURE}\Zn"
TEXT+="\n Bootdisk: \Zb${LOADER_DISK}\Zn"
TEXT+="\n Time OS | Bios: \Zb$(date "+%F %H:%M:%S") | $(hwclock | cut -d. -f1)\Zn"
TEXT+="\n Time OS | Bios: \Zb$(TZ="${REGION}/${TIMEZONE}" && date "+%F %H:%M:%S") | $(hwclock | cut -d. -f1)\Zn"
TEXT+="\n"
TEXT+="\n\Z4> Network: ${ETHN} NIC\Zn\n"
for ETH in ${ETHX}; do

View File

@ -19,8 +19,8 @@ ARCBRANCH="$(readConfigKey "arc.branch" "${USER_CONFIG_FILE}")"
BUS=$(getBus "${LOADER_DISK}")
# Check if machine has EFI
[ -d /sys/firmware/efi ] && EFI=1 || EFI=0
# NTP Check
localtime
# NTP
ntpCheck
# Print Title centralized
clear
@ -70,7 +70,7 @@ echo -e "\033[1;37mSystem:\033[0m"
echo -e "Vendor: \033[1;37m${VENDOR}\033[0m"
echo -e "CPU: \033[1;37m${CPU}\033[0m"
echo -e "Memory: \033[1;37m${RAMTOTAL}GB\033[0m"
echo -e "Time OS | Bios: \033[1;37m$(date "+%F %H:%M:%S") | $(hwclock | cut -d. -f1)\033[0m"
echo -e "Time OS | Bios: \033[1;37m$(TZ="${REGION}/${TIMEZONE}" && date "+%F %H:%M:%S") | $(hwclock | cut -d. -f1)\033[0m"
echo
if ! readConfigMap "addons" "${USER_CONFIG_FILE}" | grep -q nvmesystem; then

View File

@ -550,7 +550,6 @@ function ntpCheck() {
fi
if [ -n "${REGION}" ] && [ -n "${TIMEZONE}" ]; then
ln -fs /usr/share/zoneinfo/${REGION}/${TIMEZONE} /etc/localtime
TZ="${REGION}/${TIMEZONE}"
# NTP
/etc/init.d/S49ntpd restart > /dev/null 2>&1
#hwclock --systohc > /dev/null 2>&1