fff-web-l3config: Add button to generate wireguard key

With this button, it is easier to generate da wireguard key
in the webui

Signed-off-by: Christian Dresel <freifunk@dresel.systems>
This commit is contained in:
Christian Dresel 2020-12-20 18:24:26 +01:00
parent 994eaa5d15
commit c895bfc2cf
1 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,11 @@ if [ -n "${POST_loadvlandefault}" ] ; then
yes | loadvlandefault 1>&2
echo "VLAN Defaults wurden geladen"
fi
if [ -n "${POST_wireguardgenkey}" ] ; then
/usr/sbin/wireguardgenkey
fi
%>
</textarea>
<p>
@ -80,7 +85,8 @@ l3config=$(cat /etc/config/gateway)
<textarea name="l3config" rows="25" cols="100"><% echo "$l3config" %></textarea>
</fieldset>
<p><input type="submit" name="writeconfig" value="Konfigurationdatei speichern" style="margin-top: 5px; margin-left: 3px;" />
<input type="submit" onclick="return confirm('Achtung: Es werden alle VLAN Einstellungen zur&uuml;ck gesetzt und die Standarteinstellungen gelanden. Willst du dies wirklich?')" name="loadvlandefault" value="VLAN default laden" style="margin-top: 5px; margin-left: 3px;" /></p>
<input type="submit" onclick="return confirm('Achtung: Es werden alle VLAN Einstellungen zur&uuml;ck gesetzt und die Standarteinstellungen gelanden. Willst du dies wirklich?')" name="loadvlandefault" value="VLAN default laden" style="margin-top: 5px; margin-left: 3px;" />
<input type="submit" name="wireguardgenkey" value="wireguard Keypaar generieren" style="margin-top: 5px; margin-left: 3px;" /></p>
</td><td>
</form>
</table>