10 lines
186 B
Bash
10 lines
186 B
Bash
# shellcheck shell=bash
|
|
|
|
case "$2" in
|
|
connectivity-change)
|
|
if timezone=$(curl --fail https://ipapi.co/timezone); then
|
|
timedatectl set-timezone "$timezone"
|
|
fi
|
|
;;
|
|
esac
|