From patchwork Tue Jan 7 11:03:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [v3] fastd: make secret key updatesafe From: Christian Dresel X-Patchwork-Id: 1256 Message-Id: <20200107110320.17359-1-fff@chrisi01.de> To: franken-dev@freifunk.net Date: Tue, 7 Jan 2020 12:03:20 +0100 To use a whitelist easy, it is neccessary to make the fastd key updatesafe This patch safe the key to uci fff and recover it, if a key is after the update available Reviewed-by: lemmi --- Changes in v2: - use variable in if - remove trailing whitespace - remove -q --- Changes in v3: - use only one variable $secret --- Signed-off-by: Christian Dresel --- .../fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd b/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd index d53eb43..28384b9 100644 --- a/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd +++ b/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd @@ -15,9 +15,18 @@ uci batch < /etc/fastd/fff/up.sh