bugfix: tunnels: Tunnel config is deleted by saving changes on node.

Make sure we always save a copy of the tunnel config to /etc/config.mesh/ not just when we have an error.
This commit is contained in:
Conrad Lara - KG6JEI 2015-05-24 12:26:25 -07:00
parent fbb98d0539
commit 0aaa6b6204
2 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ if($parms{button_save} and not @cli_err)
if (&uci_commit("vtun"))
{
push(@errors,"Problem committing UCI vtun");
system("cp -f /etc/config/vtun /etc/config.mesh");
}
system("cp -f /etc/config/vtun /etc/config.mesh");
unless($debug == 3)
{
# Regenerate olsrd files and restart olsrd

View File

@ -175,8 +175,8 @@ if($parms{button_save} and not @conn_err)
if (&uci_commit("vtun"))
{
push(@errors,"Problem committing UCI vtun");
system("cp -f /etc/config/vtun /etc/config.mesh");
}
system("cp -f /etc/config/vtun /etc/config.mesh");
unless($debug == 3)
{
# Regenerate olsrd files and restart olsrd