[PATCH] Fixed Problem with port mode changing

Jan Kraus mayosemmel at googlemail.com
Di Aug 2 13:48:35 CEST 2016

Since the change of wireless configuration, the bat0 interface is missing after changing the port mode.
The reason is that n uci-default script of fff-wireless the network config of w2mesh is added.
In this configuration the w2mesh interface is added to batman.

In consequence of the change to uci configuration, it's no longer needed to reset the network config.
So this seems to be the simplest fix.

Signed-off-by: Jan Kraus <mayosemmel at gmail.com>
 src/packages/fff/fff-network/ar71xx/network.mode          | 1 -
 src/packages/fff/fff-web/files/www/ssl/cgi-bin/ports.html | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/packages/fff/fff-network/ar71xx/network.mode b/src/packages/fff/fff-network/ar71xx/network.mode
index de16aa3..8697032 100644
--- a/src/packages/fff/fff-network/ar71xx/network.mode
+++ b/src/packages/fff/fff-network/ar71xx/network.mode
@@ -5,7 +5,6 @@
 ## If you want to change their behavior, you can do so below.
 ## After that you have to reset the config with following commands.
 #cp /rom/etc/sysctl.conf /etc/sysctl.conf
-#cp /rom/etc/config/network /etc/config/network
 ### The canonical syntax of this file is:
diff --git a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/ports.html b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/ports.html
index acec550..c2d5890 100755
--- a/src/packages/fff/fff-web/files/www/ssl/cgi-bin/ports.html
+++ b/src/packages/fff/fff-web/files/www/ssl/cgi-bin/ports.html
@@ -6,7 +6,6 @@ if [ "$REQUEST_METHOD" == "POST" ] ; then
 	sed -i '/^.*# set via WebUI/d' /etc/network.mode
 	echo "ETHMODE=\"${POST_mode}\" # set via WebUI" >> /etc/network.mode
 	cp /rom/etc/sysctl.conf /etc/sysctl.conf
-	cp /rom/etc/config/network /etc/config/network
 	MSG='<span class="green">Port Modus geändert! Router startet neu...</span>'

Mehr Informationen über die Mailingliste franken-dev