From 5eb8be223dffebba01c31ddca224fe298147241c Mon Sep 17 00:00:00 2001 From: Luxferre Date: Thu, 22 Oct 2026 23:54:45 +0300 Subject: [PATCH] fix(sxmo): simplify sxmo_timezonechange.sh to always use the Alpine flow SXMO_OS is always bananarchy (an Alpine derivative) on this device, so the SXMO_OS case, the change_systemd branch, and the nixos branch were dead code. Drop them and always run the Alpine flow (doas setup-timezone -z), which is what bananarchy uses. --- overlay/rootfs/usr/bin/sxmo_timezonechange.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/overlay/rootfs/usr/bin/sxmo_timezonechange.sh b/overlay/rootfs/usr/bin/sxmo_timezonechange.sh index ff7cdbd..8d7314c 100755 --- a/overlay/rootfs/usr/bin/sxmo_timezonechange.sh +++ b/overlay/rootfs/usr/bin/sxmo_timezonechange.sh @@ -15,15 +15,6 @@ change_alpine() { echo "Timezone changed ok" } -change_systemd() { - echo "Changing timezone to $1" - - timedatectl set-timezone "$1" - sxmo_hook_statusbar.sh time - - echo "Timezone changed ok" -} - menu() { zoneinfo_dir=$(xdg_data_path zoneinfo) T="$( @@ -39,12 +30,7 @@ if [ $# -gt 0 ]; then trap "read -r" EXIT set -e - case "$SXMO_OS" in - alpine|postmarketos|bananarchy) change_alpine "$@";; - arch|archarm|debian) change_systemd "$@";; - nixos) echo "Change the timezone in configuration.nix with time.timeZone = \"[timezone]\"";; - *) echo "Changing the timezone isn't implemented on your distro yet";; - esac + change_alpine "$@" else menu fi