@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-hoods
-PKG_RELEASE:=6
+PKG_RELEASE:=7
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
@@ -27,7 +27,6 @@ getWirelessHoodfile() {
uci commit wireless
reload_config
- wifi
# wait a moment to start the interface
sleep 10;
@@ -60,8 +60,8 @@ if [ -s "$hoodfilewww" ] && isGatewayAvailable ; then
needwifi="1"
done
- if [ "$needwifi" = "1" ] ; then
- wifi
+ if [ "$needwifi" = "1" ]; then
+ reload_config
sleep 10
fi
fi
@@ -145,7 +145,6 @@ if [ -s "$hoodfiletmp" ]; then
uci set "system.@system[0].hood=$hood"
uci set "system.@system[0].hoodid=$hoodid"
uci commit system
- reload_config
for radio in $(wifiListRadio); do
freq="$(wifiGetFreq $radio)"
@@ -191,8 +190,8 @@ if [ -s "$hoodfiletmp" ]; then
done
uci commit wireless
- echo "Loading wifi"
- wifi
+ echo "Reloading wifi"
+ reload_config
oldntp="$(uci -q get system.ntp.server)"
newntp="${ntpip}" # requires routable address, no link-local
If wireless config has changed, reload_config will automatically adjust wireless interfaces. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> --- Added in v3 --- src/packages/fff/fff-hoods/Makefile | 2 +- src/packages/fff/fff-hoods/files/usr/lib/functions/fff/hoodfile | 1 - src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 9 ++++----- 3 files changed, 5 insertions(+), 7 deletions(-)