[RFC PATCH v1 3/4] fff-hoods: call reload_config after uci commit

Christian Dresel fff at chrisi01.de
So Jun 10 08:31:34 CEST 2018


Hallo

ich werde nicht schlau was reload_config macht, kannst du das evtl.
genauer erklären? Kleinigkeit noch Inline:

On 03.04.2018 21:27, Tim Niemeyer wrote:
> Signed-off-by: Tim Niemeyer <tim at tn-x.org>
> ---
> 
>  src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> index a825eea..2672cfa 100755
> --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood
> @@ -56,6 +56,7 @@ if [ -s "$hoodfilecopy" ] && isGatewayAvailable ; then
>  		uci set network.${iface}.proto='static'
>  		uci set network.${iface}.ip6addr='fe80::1/64'
>  		uci commit network

wir haben überall -q nur hier nicht. Hat das einen Grund? Ist mir hier
beim drüber schauen das erste mal aufgefallen. Eventuell können wir das
gleich mit anpassen (falls es eine v2 bzw. ein nicht-RFC geben sollte)
oder wegen mir auch in nen extra Patch.

mfg

Christian

> +		reload_config
>  		if ! wifiAddAP "$radio" "config.franken.freifunk.net" "$iface" "configap" "1"; then
>  			echo "Can't add Config interface on $radio."
>  			exit 1
> @@ -101,6 +102,7 @@ else
>  
>  			uci -q set "system. at system[0].hood="
>  			uci -q commit system
> +			reload_config
>  		
>  			sleep 30 # Wait for the config AP, which may be created at the same time as this script has started
>  
> @@ -127,6 +129,7 @@ else
>  					uci -q set network.configSta=interface
>  					uci -q set network.configSta.proto='static'
>  					uci -q commit network
> +					reload_config
>  				fi
>  			done
>  		
> @@ -232,6 +235,7 @@ if [ -s "$hoodfile" ]; then
>  		echo "Setting hood name: $hood"
>  		uci -q set "system. at system[0].hood=$hood"
>  		uci -q commit system
> +		reload_config
>  
>  		if ! wifiDelIface; then
>  			echo "Can't delete current wifi setup"
> 

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 833 bytes
Beschreibung: OpenPGP digital signature
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20180610/07dc17d4/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev