From 6b21c994d8544e2067ded7d53c7bb686d9a3583e Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 30 Jan 2017 15:06:52 -0500 Subject: [PATCH] nwfnet-sntp: silence uninformative printout --- net/nwfnet-sntp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/nwfnet-sntp.lua b/net/nwfnet-sntp.lua index fc43089..4f4c82f 100644 --- a/net/nwfnet-sntp.lua +++ b/net/nwfnet-sntp.lua @@ -4,9 +4,11 @@ local function dosntp(server) if file.open("nwfnet.conf2","r") then local conf = cjson.decode(file.read() or "") if type(conf) == "table" then - if conf["sntp"] then print("Setting SNTP server"); server = conf["sntp"] end + if conf["sntp"] then server = conf["sntp"] end else print("nwfnet.conf2 malformed") end end end + -- XXX Soon, in upstream, the NTP module will default to a ntp pool; + -- we should just let that happen here, when that happens! local x, y if not server then x, y, server = wifi.ap.getip() end if not server then x, y, server = wifi.sta.getip() end -- 2.50.1