From b0029c8c78e9a33137d9a6b1def990b9a2ec3e07 Mon Sep 17 00:00:00 2001 From: Grische Date: Fri, 3 Nov 2023 01:05:41 +0100 Subject: [PATCH] site: add predecessor of ffac-ssid-changer Backport of https://github.com/freifunkMUC/site-ffm/pull/265 using the older package from https://github.com/Freifunk-Nord/gluon-ssid-changer --- modules | 5 ++++- site.conf | 9 +++++++++ site.mk | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/modules b/modules index 32332f6e..0023bee6 100644 --- a/modules +++ b/modules @@ -6,7 +6,7 @@ ## GLUON_SITE_FEEDS # for each feed name given, add the corresponding PACKAGES_* lines # documented below -GLUON_SITE_FEEDS='ffmuc wireguard' +GLUON_SITE_FEEDS='ssidchanger ffmuc wireguard' ## PACKAGES_FFMUC_REPO # the git repository from where to clone the package feed @@ -31,3 +31,6 @@ PACKAGES_WIREGUARD_COMMIT=876a8d8f9805281e95815b7d2d5a4d997a393dc6 ## PACKAGES_WIREGUARD_BRANCH # the branch to check out PACKAGES_WIREGUARD_BRANCH=main + +PACKAGES_SSIDCHANGER_REPO=https://github.com/Freifunk-Nord/gluon-ssid-changer.git +PACKAGES_SSIDCHANGER_COMMIT=f266b9e6328f97354f3b8777d1111ad044be9be5 diff --git a/site.conf b/site.conf index 627e1cfe..3e88c164 100644 --- a/site.conf +++ b/site.conf @@ -132,5 +132,14 @@ }, }, }, + + ssid_changer = { + enabled = true, + switch_timeframe = 15, -- only once every timeframe (in minutes) the SSID will change to the Offline-SSID + first = 5, -- the first few minutes directly after reboot within which an Offline-SSID may be activated every minute + prefix = 'offline.ffmuc.net/', -- 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, -- incompatible with Batman V. The offline SSID will only be set if there is no gateway reacheable. + }, } -- vim: set ft=lua:ts=2:sw=2:et diff --git a/site.mk b/site.mk index c6503b50..3174a89a 100644 --- a/site.mk +++ b/site.mk @@ -37,6 +37,7 @@ GLUON_SITE_PACKAGES := \ ffho-web-ap-timer \ ffmuc-mesh-vpn-wireguard-vxlan \ ffmuc-simple-radv-filter \ + gluon-ssid-changer \ iptables \ iwinfo \ respondd-module-airtime