summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-clock/module-setup.sh
diff options
context:
space:
mode:
authorJonathan Bauer2019-07-23 17:53:20 +0200
committerJonathan Bauer2019-07-23 17:53:20 +0200
commit9921eabcc08ed121d7d47ef971d524a3cfe87e87 (patch)
treeed3b89529566249aea6e1f83b681b9c8608732a5 /builder/modules.d/slx-clock/module-setup.sh
parent[busybox] introduce busybox module (diff)
downloadsystemd-init-9921eabcc08ed121d7d47ef971d524a3cfe87e87.tar.gz
systemd-init-9921eabcc08ed121d7d47ef971d524a3cfe87e87.tar.xz
systemd-init-9921eabcc08ed121d7d47ef971d524a3cfe87e87.zip
[slx-clock] ntpdate > timesyncd
Diffstat (limited to 'builder/modules.d/slx-clock/module-setup.sh')
-rwxr-xr-xbuilder/modules.d/slx-clock/module-setup.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/builder/modules.d/slx-clock/module-setup.sh b/builder/modules.d/slx-clock/module-setup.sh
index 50c36fe6..1a9956e3 100755
--- a/builder/modules.d/slx-clock/module-setup.sh
+++ b/builder/modules.d/slx-clock/module-setup.sh
@@ -5,9 +5,12 @@ check() {
return 255
}
depends() {
- echo dnbd3-rootfs
+ echo dnbd3-rootfs busybox
}
install() {
- # unpacking config.tgz should be pre-pivot 10, let's do this afterwards
- inst_hook pre-pivot 50 "$moddir/scripts/configure-timesyncd.sh"
+ # wait til we have the openslx config for ntp servers
+ # which happens in pre-mount/10
+ inst_multiple ntpdate /etc/services /usr/share/zoneinfo/Europe/Berlin
+ inst /usr/share/zoneinfo/Europe/Berlin /etc/localtime
+ inst_hook pre-mount 15 "$moddir/scripts/ntp-sync.sh"
}