]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/commitdiff
nwfnet-go: Just delete the config file already
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 30 Jan 2017 20:07:37 +0000 (15:07 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Mon, 30 Jan 2017 20:09:01 +0000 (15:09 -0500)
Unless explicitly told to keep it for some reason.

net/nwfnet-go.lua

index a98e9b869ec4f30461b0260967e4170504052fca..b39582024bef60164618d818d85feffc9530759d 100644 (file)
@@ -25,7 +25,7 @@ if file.open("nwfnet.conf","r") then
     else                               wifi.setmode(wifi.STATION)
     end
 
-    print("Applied settings from nwfnet.conf; likely, you want to remove this file...")
+    if not conf["keepfile"] then file.remove("nwfnet.conf") end
    else print("nwfnet.conf malformed")
   end
   file.close()