Skip to content
Snippets Groups Projects
Commit 10109a50 authored by Tim Niemeyer's avatar Tim Niemeyer
Browse files

fff-hoods: call reload_config after uci commit


Signed-off-by: default avatarTim Niemeyer <tim@tn-x.org>
Reviewed-by: default avatarChristian Dresel <fff@chrisi01.de>
Acked-by: default avatarAdrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: default avatarRobert Langhammer <rlanghammer@web.de>
parent c54fcf9b
No related branches found
No related tags found
No related merge requests found
......@@ -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 "system.@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.@system[0].hood=$hood"
uci -q commit system
reload_config
if ! wifiDelIface; then
echo "Can't delete current wifi setup"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment