diff options
author | Jonathan Bauer | 2019-07-24 11:39:54 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-07-24 11:39:54 +0200 |
commit | b350147271f9f81ffe27f364b15450d0720ef2c4 (patch) | |
tree | f3ee06bbcf5198bbc68a2bf95c35161df1e148d7 /builder/modules.d/slx-clock | |
parent | [slx-clock] add ntp-sync script (diff) | |
download | systemd-init-b350147271f9f81ffe27f364b15450d0720ef2c4.tar.gz systemd-init-b350147271f9f81ffe27f364b15450d0720ef2c4.tar.xz systemd-init-b350147271f9f81ffe27f364b15450d0720ef2c4.zip |
[slx-clock] remove deprecated file
Diffstat (limited to 'builder/modules.d/slx-clock')
-rw-r--r-- | builder/modules.d/slx-clock/scripts/configure-timesyncd.sh | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/builder/modules.d/slx-clock/scripts/configure-timesyncd.sh b/builder/modules.d/slx-clock/scripts/configure-timesyncd.sh deleted file mode 100644 index 336c26bf..00000000 --- a/builder/modules.d/slx-clock/scripts/configure-timesyncd.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -# -# Evaluate SLX_BIOS_CLOCK and SLX_NTP_SERVER and configure -# stage4's timesyncd accordingly. - -. /etc/openslx - -configure_newroot_timesyncd() { - if [ "$SLX_BIOS_CLOCK" = "local" ]; then - cat > "$NEWROOT/etc/adjtime" <<-EOF - 0.0 0 0.0 - 0 - LOCAL - EOF - elif [ "$SLX_BIOS_CLOCK" = "utc" ]; then - [ -e "$NEWROOT/etc/adjtime" ] && rm "$NEWROOT/etc/adjtime" - fi - - # NTP servers - if [ -n "$SLX_NTP_SERVER" ]; then - local TIMESYNCD_DIR="$NEWROOT/etc/systemd/timesyncd.conf.d" - mkdir -p "$TIMESYNCD_DIR" - ( - echo "[Time]" - echo "NTP=$SLX_NTP_SERVER" - ) > "${TIMESYNCD_DIR}/00-slx.conf" - fi -} - -configure_newroot_timesyncd - -true |