blob: 77541ab0a51b464bdfc7fb7c76a6185f3c098e8f (
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
|