gluon-hoodselector: fix spelling/grammar

This commit is contained in:
Andreas Ziegler 2018-05-19 19:14:25 +02:00 committed by Jan-Tarek Butt
parent 64b64cb415
commit 843691e04c
3 changed files with 11 additions and 11 deletions

View File

@ -12,7 +12,7 @@ include ../gluon.mk
define Package/gluon-hoodselector define Package/gluon-hoodselector
SECTION:=gluon SECTION:=gluon
CATEGORY:=Gluon CATEGORY:=Gluon
TITLE:=Automatically sorte routers into network hoods. TITLE:=Automatically sortes nodes into network hoods.
DEPENDS:=+gluon-site +gluon-mesh-batman-adv-15 @GLUON_MULTIDOMAIN DEPENDS:=+gluon-site +gluon-mesh-batman-adv-15 @GLUON_MULTIDOMAIN
CONFLICTS:=+gluon-config-mode-domain-select CONFLICTS:=+gluon-config-mode-domain-select
endef endef
@ -21,9 +21,9 @@ define Package/gluon-hoodselector/description
This is the hoodselector. The hoodselector is one of the main components for This is the hoodselector. The hoodselector is one of the main components for
splitting a layer 2 mesh network into seperated network segments (hoods). splitting a layer 2 mesh network into seperated network segments (hoods).
The job of the hoodselector is to automatically detect in which hood The job of the hoodselector is to automatically detect in which hood
the router is located based on geo settings or by scanning its environment. the node is located based on geo settings or by scanning its environment.
Based on these informations the hoodselector should select a hood from a Based on this information the hoodselector should select a hood from a
list of known hoods (hoodlist) and adjust vpn, wireless and mesh on lan list of known hoods (hoodlist) and adjust VPN, wireless and mesh on lan
configuration based on the settings given for the selected hood. configuration based on the settings given for the selected hood.
endef endef

View File

@ -26,7 +26,7 @@ if this_domain() ~= need_string(in_site({'default_domain'})) then
end end
end end
if #shape < 2 then if #shape < 2 then
need(in_domain({'hoodselector', 'shapes'}), function(err) return false end, true, "needs to have at least 2 coordiantes for rectangular shapes.") need(in_domain({'hoodselector', 'shapes'}), function(err) return false end, true, "needs to have at least 2 coordinates for rectangular shapes.")
end end
end end
if no_shapes then if no_shapes then

View File

@ -16,7 +16,7 @@ if not lockfd:lock('tlock') then
os.exit(1) os.exit(1)
end end
-- initialization done -- initialisation done
-- --
local function get_mesh_vpn_interface() local function get_mesh_vpn_interface()
local ret = {} local ret = {}
@ -42,7 +42,7 @@ local function get_mesh_vpn_interface()
return ret return ret
end end
-- INITIALIZE AND PREPARE DATA -- -- INITIALISE AND PREPARE DATA --
-- read hoodfile... -- read hoodfile...
local jhood = hoodutil.get_domains() local jhood = hoodutil.get_domains()
@ -50,11 +50,11 @@ local jhood = hoodutil.get_domains()
local defaultHood = hoodutil.getDefaultHood(jhood) local defaultHood = hoodutil.getDefaultHood(jhood)
-- VPN MODE -- VPN MODE
-- If we have a VPN connection we will try to get the router's location and -- If we have a VPN connection we will try to get the node's location and
-- select the hood coresponding to our location. -- select the hood coresponding to this location.
-- If no hood for the location has been defined, we will select -- If no hood for the location has been defined, we will select
-- the default hood. -- the default hood.
-- If we can't get our router's location, we will continue to the next mode. -- If we can't determine the node's location, we will continue to the next mode.
if hoodutil.directVPN(get_mesh_vpn_interface()) then if hoodutil.directVPN(get_mesh_vpn_interface()) then
io.stdout:write('VPN connection found.\n') io.stdout:write('VPN connection found.\n')
local geo = hoodutil.getGeolocation() local geo = hoodutil.getGeolocation()
@ -76,7 +76,7 @@ if hoodutil.directVPN(get_mesh_vpn_interface()) then
os.exit(0) os.exit(0)
else else
-- The hoodselector should continue with the next states because there can be other -- 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 -- VPN nodes in the local mesh network which provide a position and therefore
-- have set a geo base hood. -- have set a geo base hood.
io.stdout:write('No position found\n') io.stdout:write('No position found\n')
end end