From patchwork Mon Sep 4 13:53:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Make hood configuration option update-safe From: Fabian Blaese X-Patchwork-Id: 465 Message-Id: <20170904135301.32435-1-fabian@blaese.de> To: franken-dev@freifunk.net Date: Mon, 4 Sep 2017 15:53:01 +0200 Signed-off-by: Fabian Bläse Reviewed-by: Christian Dresel --- .../fff-sysupgrade/files/etc/uci-defaults/05-config-system-migration | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/packages/fff/fff-sysupgrade/files/etc/uci-defaults/05-config-system-migration b/src/packages/fff/fff-sysupgrade/files/etc/uci-defaults/05-config-system-migration index 0e36587..3b249ae 100644 --- a/src/packages/fff/fff-sysupgrade/files/etc/uci-defaults/05-config-system-migration +++ b/src/packages/fff/fff-sysupgrade/files/etc/uci-defaults/05-config-system-migration @@ -6,6 +6,7 @@ UPGRADE_latitude=$(uci -q get "system.@system[0].latitude") UPGRADE_longitude=$(uci -q get "system.@system[0].longitude") UPGRADE_position_comment=$(uci -q get "system.@system[0].position_comment") UPGRADE_contact=$(uci -q get "system.@system[0].contact") +UPGRADE_hood=$(uci -q get "system.@system[0].hood") /bin/rm -rf /etc/config/system @@ -17,5 +18,6 @@ test -n "${UPGRADE_latitude}" && uci -q set "system.@system[0].latitude=${UPGRAD test -n "${UPGRADE_longitude}" && uci -q set "system.@system[0].longitude=${UPGRADE_longitude}" test -n "${UPGRADE_position_comment}" && uci -q set "system.@system[0].position_comment=${UPGRADE_position_comment}" test -n "${UPGRADE_contact}" && uci -q set "system.@system[0].contact=${UPGRADE_contact}" +test -n "${UPGRADE_hood}" && uci -q set "system.@system[0].hood=${UPGRADE_hood}" uci -q commit system