package/gluon-hoodselector: add default hood mode

This commit is contained in:
Jan-Tarek Butt 2018-04-25 09:33:21 +02:00
parent 3edfe3ada9
commit 2c4c8b6966

View File

@ -179,4 +179,12 @@ if hoodutil.batmanHasGateway() then
523 end 523 end
--]] --]]
exit(0) -- Debug -- DEFAULT-HOOD MODE
-- If we do NOT have a VPN connection and no other freifunk mesh nodes found in our network ENV
-- then we set the default hood.
io.stdout:write("ENV does not give enough information\n")
if hoodutil.set_hoodconfig(defaultHood) then
hoodutil.restart_services() -- TMP solution
io.stdout:write('Hood set by default-hood mode.\n')
end
exit(0)