[PATCH] Make hood configuration option update-safe

Tim Niemeyer tim at tn-x.org
So Sep 17 16:29:36 CEST 2017


Hi

Das ist ein sehr guter Fund, jedoch werde ich diesen Patch nicht
applien, weil absehbar ist, dass die hood config nicht mehr manuell
sondern durch ein Script (regelmäßig) gesetzt wird. Daher muss diese
Einstellung das Update nicht überleben.

Tut mir leid, das ich so spät drüber schau, sonst wäre es rein
gekommen.

Tim

Am Montag, den 04.09.2017, 15:53 +0200 schrieb Fabian Bläse:
> Signed-off-by: Fabian Bläse <fabian at blaese.de>
> ---
>  .../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. at system[0].lati
> tude")
>  UPGRADE_longitude=$(uci -q get "system. at system[0].longitude")
>  UPGRADE_position_comment=$(uci -q get "system. at system[0].position_co
> mment")
>  UPGRADE_contact=$(uci -q get "system. at system[0].contact")
> +UPGRADE_hood=$(uci -q get "system. at system[0].hood")
>  
>  /bin/rm -rf /etc/config/system
>  
> @@ -17,5 +18,6 @@ test -n "${UPGRADE_latitude}" && uci -q set "system
> . at system[0].latitude=${UPGRAD
>  test -n "${UPGRADE_longitude}" && uci -q set "system. at system[0].long
> itude=${UPGRADE_longitude}"
>  test -n "${UPGRADE_position_comment}" && uci -q set "system. at system[
> 0].position_comment=${UPGRADE_position_comment}"
>  test -n "${UPGRADE_contact}" && uci -q set "system. at system[0].contac
> t=${UPGRADE_contact}"
> +test -n "${UPGRADE_hood}" && uci -q set "system. at system[0].hood=${UP
> GRADE_hood}"
>  
>  uci -q commit system
> -- 
> 2.11.0 (Apple Git-81)
> 
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 488 bytes
Beschreibung: This is a digitally signed message part
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20170917/eed17452/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev