gluon-hoodselector: fix spelling/grammar
This commit is contained in:
parent
64b64cb415
commit
843691e04c
@ -12,7 +12,7 @@ include ../gluon.mk
|
||||
define Package/gluon-hoodselector
|
||||
SECTION:=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
|
||||
CONFLICTS:=+gluon-config-mode-domain-select
|
||||
endef
|
||||
@ -21,9 +21,9 @@ define Package/gluon-hoodselector/description
|
||||
This is the hoodselector. The hoodselector is one of the main components for
|
||||
splitting a layer 2 mesh network into seperated network segments (hoods).
|
||||
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.
|
||||
Based on these informations the hoodselector should select a hood from a
|
||||
list of known hoods (hoodlist) and adjust vpn, wireless and mesh on lan
|
||||
the node is located based on geo settings or by scanning its environment.
|
||||
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
|
||||
configuration based on the settings given for the selected hood.
|
||||
endef
|
||||
|
||||
|
@ -26,7 +26,7 @@ if this_domain() ~= need_string(in_site({'default_domain'})) then
|
||||
end
|
||||
end
|
||||
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
|
||||
if no_shapes then
|
||||
|
@ -16,7 +16,7 @@ if not lockfd:lock('tlock') then
|
||||
os.exit(1)
|
||||
end
|
||||
|
||||
-- initialization done
|
||||
-- initialisation done
|
||||
--
|
||||
local function get_mesh_vpn_interface()
|
||||
local ret = {}
|
||||
@ -42,7 +42,7 @@ local function get_mesh_vpn_interface()
|
||||
return ret
|
||||
end
|
||||
|
||||
-- INITIALIZE AND PREPARE DATA --
|
||||
-- INITIALISE AND PREPARE DATA --
|
||||
-- read hoodfile...
|
||||
local jhood = hoodutil.get_domains()
|
||||
|
||||
@ -50,11 +50,11 @@ local jhood = hoodutil.get_domains()
|
||||
local defaultHood = hoodutil.getDefaultHood(jhood)
|
||||
|
||||
-- VPN MODE
|
||||
-- If we have a VPN connection we will try to get the router's location and
|
||||
-- select the hood coresponding to our location.
|
||||
-- If we have a VPN connection we will try to get the node's location and
|
||||
-- select the hood coresponding to this location.
|
||||
-- If no hood for the location has been defined, we will select
|
||||
-- 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
|
||||
io.stdout:write('VPN connection found.\n')
|
||||
local geo = hoodutil.getGeolocation()
|
||||
@ -76,7 +76,7 @@ if hoodutil.directVPN(get_mesh_vpn_interface()) then
|
||||
os.exit(0)
|
||||
else
|
||||
-- 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.
|
||||
io.stdout:write('No position found\n')
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user