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

View File

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