2020-03-04 09:35:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-10-17 16:13:06 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2021-04-09 17:39:41 +00:00
|
|
|
set -eux
|
2019-03-14 20:40:08 +00:00
|
|
|
set -o pipefail
|
|
|
|
|
2019-04-03 06:19:08 +00:00
|
|
|
systemd-analyze log-level debug
|
2019-03-14 20:40:08 +00:00
|
|
|
|
|
|
|
systemctl disable --now systemd-timesyncd.service
|
|
|
|
|
|
|
|
timedatectl set-timezone Europe/Berlin
|
|
|
|
timedatectl set-time 1980-10-15
|
|
|
|
|
|
|
|
systemd-run --on-timezone-change touch /tmp/timezone-changed
|
|
|
|
systemd-run --on-clock-change touch /tmp/clock-changed
|
|
|
|
|
2021-04-07 21:24:25 +00:00
|
|
|
test ! -f /tmp/timezone-changed
|
|
|
|
test ! -f /tmp/clock-changed
|
2019-03-14 20:40:08 +00:00
|
|
|
|
|
|
|
timedatectl set-timezone Europe/Kiev
|
|
|
|
|
2021-04-07 21:24:25 +00:00
|
|
|
while test ! -f /tmp/timezone-changed ; do sleep .5 ; done
|
2019-03-14 20:40:08 +00:00
|
|
|
|
|
|
|
timedatectl set-time 2018-1-1
|
|
|
|
|
2021-04-07 21:24:25 +00:00
|
|
|
while test ! -f /tmp/clock-changed ; do sleep .5 ; done
|
2019-03-14 20:40:08 +00:00
|
|
|
|
2019-04-03 06:19:08 +00:00
|
|
|
systemd-analyze log-level info
|
2019-03-14 20:40:08 +00:00
|
|
|
|
2023-07-12 13:49:55 +00:00
|
|
|
touch /testok
|