summaryrefslogtreecommitdiffstats
path: root/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-27 15:15:30 +0100
committerSimon Rettberg2017-11-27 15:15:30 +0100
commita9e496a02d5eb2d30bf819374317657869cff007 (patch)
tree728d71d4cd39a56044ff48d4a26d6cfc79ff6fa6 /core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
parent[hardware-stats] Import SLX vars in standby-script (diff)
downloadmltk-a9e496a02d5eb2d30bf819374317657869cff007.tar.gz
mltk-a9e496a02d5eb2d30bf819374317657869cff007.tar.xz
mltk-a9e496a02d5eb2d30bf819374317657869cff007.zip
[rfs-stage31] Honor NTP servers returned by DHCP for timesync; fallback to $SLX_NOW
Diffstat (limited to 'core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger')
-rwxr-xr-xcore/rootfs/rootfs-stage31/data/inc/udhcpc-trigger3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger b/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
index 7e7e65f2..15fb59bf 100755
--- a/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
+++ b/core/rootfs/rootfs-stage31/data/inc/udhcpc-trigger
@@ -82,6 +82,9 @@ if [ -n "$search" ]; then
echo "SLX_NET_SEARCH='$search'" >> /run/config
fi
+for i in $ntpsrv; do
+ echo "$i" >> "/run/ntpsrv"
+done
# Hostname
if [ -z "$hostname" ]; then