blob: af1148eb6c1fb7803038c8fa7cd02d9a961a0331 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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
|