wireguard-tools: allow generating private_key
authorLeonardo Mörlein <me@irrelefant.net>
Wed, 15 Sep 2021 01:09:18 +0000 (03:09 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 8 Feb 2022 11:52:14 +0000 (12:52 +0100)
commit5406684087815d3f66df9d8318e15db7137148f5
treebc4a363f455952f7ea1e431b7280ab086f4de16f
parent04ed224543ad10030c4394c86e533f02bf596a1b
wireguard-tools: allow generating private_key

When the uci configuration is created automatically during a very early
stage, where no entropy daemon is set up, generating the key directly is
not an option. Therefore we allow to set the private_key to "generate"
and generate the private key directly before the interface is taken up.

Signed-off-by: Leonardo Mörlein <me@irrelefant.net>
Tested-by: Jan-Niklas Burfeind <git@aiyionpri.me>
package/network/utils/wireguard-tools/files/wireguard.sh