gluon-hoodselector: fix language syntax in hoodselector

can not -> can't
routers -> router's
continure -> continue
to next -> to the next
TMP -> temporary
for current -> for the current
continure -> continue
with next -> with the next
thier -> there
provides -> provide
possition -> position
therfore -> therefore
This commit is contained in:
Jan-Tarek Butt 2018-05-17 11:16:45 +02:00
parent 064e77d4d8
commit c67f380cc8

View File

@ -62,7 +62,7 @@ local defaultHood = hoodutil.getDefaultHood(jhood)
-- select the hood coresponding to our location.
-- If no hood for the location has been defined, we will select
-- the default hood.
-- If we can not get our routers location, we will continure to next mode.
-- If we can't get our router's location, we will continue to the next mode.
if hoodutil.directVPN(get_mesh_vpn_interface()) then
io.stdout:write('VPN connection found.\n')
local geo = hoodutil.getGeolocation()
@ -71,20 +71,20 @@ if hoodutil.directVPN(get_mesh_vpn_interface()) then
local geoHood = hoodutil.getHoodByGeo(jhood, geo)
if geoHood ~= nil then
if hoodutil.set_hoodconfig(geoHood) then
hoodutil.restart_services() -- TMP solution
hoodutil.restart_services() -- temporary solution
io.stdout:write('Hood set by VPN mode.\n')
end
exit(0)
end
io.stdout:write('No hood has been defined for current position.\n')
io.stdout:write('No hood has been defined for the current position.\n')
if hoodutil.set_hoodconfig(defaultHood) then
hoodutil.restart_services() -- TMP solution
io.stdout:write('Hood set by VPN mode.\n')
end
exit(0)
else
-- The hoodselector should continure with next states because thier can be other
-- VPN routers in the local mesh network which provides a possition and therfore
-- The hoodselector should continue with the next states because there can be other
-- VPN routers in the local mesh network which provide a position and therefore
-- have set a geo base hood.
io.stdout:write('No position found\n')
end