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:
Conrad Lara - KG6JEI 2015-03-23 17:25:18 -07:00
parent 5db6e2a747
commit 078ab54f06
1 changed files with 9 additions and 0 deletions

View File

@ -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);
system ("mv /tmp/.${config}_setup /etc/config.$config/_setup");