diff options
Diffstat (limited to 'modules.d/slx-clock/module-setup.sh')
-rwxr-xr-x | modules.d/slx-clock/module-setup.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules.d/slx-clock/module-setup.sh b/modules.d/slx-clock/module-setup.sh index f9ff0c48..3b62089c 100755 --- a/modules.d/slx-clock/module-setup.sh +++ b/modules.d/slx-clock/module-setup.sh @@ -8,16 +8,16 @@ depends() { echo dnbd3-rootfs busybox } install() { - # see where systemd-cat is installed - local sdc_bin="$( command -v systemd-cat )" - if [ -z "$sdc_bin" ]; then - warn "Could not find systemd-cat in $PATH. Check if its installed." - return 1 - fi - # wait til we have the openslx config for ntp servers - # which happens in pre-mount/10 - inst_multiple "/etc/services" "/usr/share/zoneinfo/Europe/Berlin" "$sdc_bin" + inst_multiple "/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" - inst_hook pre-pivot 15 "$moddir/scripts/configure-timesyncd.sh" + for _name in "s3-setup-addons" "s3-configure-timesyncd"; do + inst "$moddir/hooks/${_name}.sh" \ + "/usr/local/bin/${_name}.sh" + inst_simple "${moddir}/services/${_name}.service" \ + "${systemdsystemunitdir}/${_name}.service" + mkdir --parents \ + "${initdir}/${systemdsystemunitdir}/dracut-pre-pivot.service.requires" + ln_r "${systemdsystemunitdir}/${_name}.service" \ + "${systemdsystemunitdir}/dracut-pre-pivot.service.requires/${_name}.service" + done } |