<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Zur Diskussion, ob das zu oft drin ist: Erstmal so lassen. <br>
</tt></p>
<p><tt>Das reload_config bzw. der procd ist intelligent genug, dass
ein Aufruf zu viel nicht schadet, da er nichts tut wenn es keine
Aenderungen gab. </tt><br>
</p>
<tt>Reviewed-by: Robert Langhammer </tt><tt><a
class="moz-txt-link-rfc2396E" href="mailto:rlanghammer@web.de"><rlanghammer@web.de></a></tt><br>
<br>
<div class="moz-cite-prefix">Am 10.06.2018 um 14:06 schrieb Tim
Niemeyer:<br>
</div>
<blockquote type="cite"
cite="mid:20180610120601.21151-4-tim@tn-x.org">
<pre wrap="">Signed-off-by: Tim Niemeyer <a class="moz-txt-link-rfc2396E" href="mailto:tim@tn-x.org"><tim@tn-x.org></a>
Reviewed-by: Christian Dresel <a class="moz-txt-link-rfc2396E" href="mailto:fff@chrisi01.de"><fff@chrisi01.de></a>
---
Changes in v1: None
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 42a489d..eaf2578 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
+ 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 del <a class="moz-txt-link-rfc2396E" href="mailto:system.@system[0].hood">"system.@system[0].hood"</a>
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 <a class="moz-txt-link-rfc2396E" href="mailto:system.@system[0].hood=$hood">"system.@system[0].hood=$hood"</a>
uci -q commit system
+ reload_config
if ! wifiDelIface; then
echo "Can't delete current wifi setup"
</pre>
</blockquote>
<br>
</body>
</html>