diff --git a/repos/libports/run/sntp_client.run b/repos/libports/run/sntp_client.run index ca7c098a1..7196b5f4c 100644 --- a/repos/libports/run/sntp_client.run +++ b/repos/libports/run/sntp_client.run @@ -5,6 +5,11 @@ if { [have_spec linux] } { exit 0 } +set host_tool [installed_command host] +set ntp_ip [exec $host_tool -t A pool.ntp.org | head -1 | cut -d " " -f 4] + +puts "Using NTP server $ntp_ip" + create_boot_directory import_from_depot [depot_user]/src/[base_src] \ @@ -56,7 +61,7 @@ append config { - + }