From 078ab54f06045a310e049afa9219937c5d120caf Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Mon, 23 Mar 2015 17:25:18 -0700 Subject: [PATCH] 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. --- files/usr/local/bin/bbhn-postupgrade | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/files/usr/local/bin/bbhn-postupgrade b/files/usr/local/bin/bbhn-postupgrade index ce3f0698..59a1cf90 100755 --- a/files/usr/local/bin/bbhn-postupgrade +++ b/files/usr/local/bin/bbhn-postupgrade @@ -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");