From 843691e04cab81f2c2d5b872ef6983ea62985334 Mon Sep 17 00:00:00 2001 From: Andreas Ziegler Date: Sat, 19 May 2018 19:14:25 +0200 Subject: [PATCH] gluon-hoodselector: fix spelling/grammar --- package/gluon-hoodselector/Makefile | 8 ++++---- package/gluon-hoodselector/check_site.lua | 2 +- .../gluon-hoodselector/luasrc/usr/sbin/hoodselector | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package/gluon-hoodselector/Makefile b/package/gluon-hoodselector/Makefile index 9094ae33..d18ccbb4 100644 --- a/package/gluon-hoodselector/Makefile +++ b/package/gluon-hoodselector/Makefile @@ -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 diff --git a/package/gluon-hoodselector/check_site.lua b/package/gluon-hoodselector/check_site.lua index fe02d8ed..235b7ab8 100644 --- a/package/gluon-hoodselector/check_site.lua +++ b/package/gluon-hoodselector/check_site.lua @@ -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 diff --git a/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector b/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector index de905944..25ad2ac7 100755 --- a/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector +++ b/package/gluon-hoodselector/luasrc/usr/sbin/hoodselector @@ -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