timedatectl seems to be working now with time sync.

This commit is contained in:
Storm Dragon 2024-05-21 02:06:30 -04:00
parent 83b7867da4
commit 88d7d12c69
2 changed files with 4 additions and 6 deletions

View File

@ -183,7 +183,6 @@ pacman -Su --needed --noconfirm \
magic-wormhole \
man \
man-pages \
openntpd \
networkmanager \
pipewire \
pipewire-alsa \
@ -235,7 +234,6 @@ xdg-user-dirs-update
export aurPackages=(fenrir-git \
growpartfs \
log2ram \
networkmanager-dispatcher-openntpd \
yay)
export PKGDEST=~/packages
for p in "\${aurPackages[@]}" ; do

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# For audible sudo prompts:
unset sudoFlags
@ -24,10 +24,9 @@ if [[ -x /opt/configure-stormux/configure-stormux.sh ]]; then
exit 0
fi
set_timezone() {
export DIALOGOPTS='--insecure --no-lines --visit-items'
export DIALOGOPTS='--insecure --no-lines --visit-items'
set_timezone() {
# Get the list of timezones
mapfile -t regions < <(timedatectl --no-pager list-timezones | cut -d '/' -f1 | sort -u)
@ -51,6 +50,7 @@ set_timezone() {
rm /etc/localtime
fi
ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime
timedatectl set-ntp true
}