mirror of https://github.com/aredn/aredn.git
bugfix: sysupgrade : OLSRD and LAN interface do not work after sysupgrade
Variables were not being being synced to _setup because they do not exist in _setup.default so we need to manually sync them over.
This commit is contained in:
parent
5db6e2a747
commit
078ab54f06
|
@ -58,6 +58,15 @@ foreach $config ("ap","client","mesh","mesh_ap","router")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Specific settings for variables that are not in the default config but are added by the system
|
||||||
|
foreach $variable( 'dmz_dhcp_end', 'dmz_dhcp_limit', 'dmz_dhcp_start', 'dmz_lan_ip', 'dmz_lan_mask', 'wifi_rxant', 'wifi_txant' )
|
||||||
|
{
|
||||||
|
if ( $cfg{$variable} )
|
||||||
|
{
|
||||||
|
print TMPCONFFILE "$variable = $cfg{$variable}\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
close (TMPCONFFILE);
|
close (TMPCONFFILE);
|
||||||
|
|
||||||
system ("mv /tmp/.${config}_setup /etc/config.$config/_setup");
|
system ("mv /tmp/.${config}_setup /etc/config.$config/_setup");
|
||||||
|
|
Loading…
Reference in New Issue