From c67f380cc8b50e2729f453a169beaf5167400792 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Thu, 17 May 2018 11:16:45 +0200 Subject: [PATCH] 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 --- .../gluon-hoodselector/luasrc/usr/sbin/hoodselector | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector b/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector index 9ee722fd..cc7d31af 100755 --- a/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector +++ b/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector @@ -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