#!/bin/bash . /etc/openslx if [ -n "$SLX_NTP_SERVER" ]; then tsdir="${NEWROOT}/etc/systemd/timesyncd.conf.d" mkdir -p "$tsdir" ( echo "[Time]" echo "NTP=$SLX_NTP_SERVER" ) > "${tsdir}/slx-ntp.conf" fi