From 0cb07093738a22d8ade19888c8b1a7573f7a2575 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Wed, 1 Nov 2017 21:38:24 +0100 Subject: [PATCH] 11s mesh id automatisch berechnen aus dem site_code kompatibel zu ffhh-sued --- template/site.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/site.conf.erb b/template/site.conf.erb index da0bae7..5ddc5d4 100644 --- a/template/site.conf.erb +++ b/template/site.conf.erb @@ -28,7 +28,7 @@ }, <% if gluon_ath10k_mesh == "11s" -%> mesh = { - id = '6668682D73756564', + id = '<%= site_code.prepend("00000000")[-8..-1].each_byte.map { |b| b.to_s(16) }.join.upcase %>' mcast_rate = 12000, }, <% else -%> @@ -47,7 +47,7 @@ }, <% if gluon_ath10k_mesh == "11s" -%> mesh = { - id = '6668682D73756564', + id = '<%= site_code.prepend("00000000")[-8..-1].each_byte.map { |b| b.to_s(16) }.join.upcase %>' mcast_rate = 12000, }, <% else -%>