From c421fa0e97cd52040199e0648f4aa8936a736c9a Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" <148610067+eshanized@users.noreply.github.com> Date: Sun, 25 Feb 2024 16:50:22 +0530 Subject: [PATCH] add nm --- .../airootfs/etc/NetworkManager/dispatcher.d/09-timezone | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 archiso/airootfs/etc/NetworkManager/dispatcher.d/09-timezone diff --git a/archiso/airootfs/etc/NetworkManager/dispatcher.d/09-timezone b/archiso/airootfs/etc/NetworkManager/dispatcher.d/09-timezone new file mode 100644 index 0000000..a3eb6d7 --- /dev/null +++ b/archiso/airootfs/etc/NetworkManager/dispatcher.d/09-timezone @@ -0,0 +1,9 @@ +#!/bin/sh +# Update timezone every time NetworkManager connects to a network +# Using connectivity-change instead of up can prevent timezone changes when connecting to VPNs with clients such as OpenConnect +# Having the right time zone could fix some issues related to invalid signature errors: https://wiki.archlinux.org/title/Pacman/Package_signing#Invalid_signature_errors +case "$2" in + connectivity-change) + timedatectl set-timezone "$(curl --fail https://ipapi.co/timezone)" + ;; +esac