From f76d06456e525e18bc94f10daaf4c6f6e5078c1f Mon Sep 17 00:00:00 2001 From: lokn <20230168+lokn@users.noreply.github.com> Date: Tue, 21 Jul 2020 23:42:25 +0200 Subject: [PATCH] add ssid-changer (#45) --- modules | 6 +++++- site.conf | 18 ++++++++++++++++++ site.mk | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/modules b/modules index 53c0fe2..74cd791 100644 --- a/modules +++ b/modules @@ -1,4 +1,8 @@ -GLUON_SITE_FEEDS='ffhb' +GLUON_SITE_FEEDS='ffhb ssidchanger' PACKAGES_FFHB_REPO=git://github.com/FreifunkBremen/ffhb-packages.git PACKAGES_FFHB_COMMIT=e314a51ebbd5e8b6da3ab2744354869b7740913a + +PACKAGES_SSIDCHANGER_REPO=https://github.com/freifunk-nord/gluon-ssid-changer.git +PACKAGES_SSIDCHANGER_COMMIT=f266b9e6328f97354f3b8777d1111ad044be9be5 # <-- set the newest commit ID here +PACKAGES_SSIDCHANGER_BRANCH=2018.1.x diff --git a/site.conf b/site.conf index 1aabdb6..ad154cb 100644 --- a/site.conf +++ b/site.conf @@ -119,6 +119,24 @@ zoom = 11, }, }, + }, + + ssid_changer = { + enabled = true, + switch_timeframe = 3, -- only once every timeframe (in minutes) the SSID will change to the Offline-SSID + -- set to 1440 to change once a day + -- set to 1 minute to change every time the router gets offline + first = 3, -- the first few minutes directly after reboot within which an Offline-SSID may be + -- activated every minute (must be <= switch_timeframe) + prefix = 'FF_offline_', -- use something short to leave space for the nodename (no '~' allowed!) + suffix = 'nodename', -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none' + + tq_limit_enabled = false, -- if false, the offline SSID will only be set if there is no gateway reacheable + -- if true, set upper and lower limit to turn the offline_ssid on and off + -- in-between these two values the SSID will never be changed to prevent it from + -- toggeling every minute: + tq_limit_max = 45, -- upper limit, above that the online SSID will be used + tq_limit_min = 35 -- lower limit, below that the offline SSID will be used }, } diff --git a/site.mk b/site.mk index fbcfebc..d244806 100755 --- a/site.mk +++ b/site.mk @@ -12,6 +12,7 @@ GLUON_FEATURES := \ mesh-batman-adv-14 GLUON_SITE_PACKAGES := \ + gluon-ssid-changer \ respondd-module-airtime \ gluon-config-mode-core \ gluon-config-mode-domain-select \