2020-03-04 09:35:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-03-14 20:40:08 +00:00
|
|
|
set -ex
|
|
|
|
set -o pipefail
|
|
|
|
|
2019-04-03 06:19:08 +00:00
|
|
|
systemd-analyze log-level debug
|
|
|
|
systemd-analyze log-target console
|
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
|
|
|
|
2021-04-07 22:09:55 +00:00
|
|
|
echo OK >/testok
|
2019-03-14 20:40:08 +00:00
|
|
|
|
|
|
|
exit 0
|