[PATCH] Fixed Problem with port mode changing
Tim Niemeyer
tim at tn-x.org
Sa Aug 20 17:00:29 CEST 2016
Hi
Sollte gehen..
Bitte beim Applien die maximale Zeichenlänge der Commit-Message
beachten.
Reviewed-by: Tim Niemeyer <tim at tn-x.org>
Tim
Am Dienstag, den 02.08.2016, 13:48 +0200 schrieb Jan Kraus:
> 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
> #reboot
> #
> ### 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
> do_reboot=1
> MSG='<span class="green">Port Modus geändert! Router startet neu...</span>'
> fi
> --
> 2.1.4
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 473 bytes
Beschreibung: This is a digitally signed message part
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160820/11cd7488/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev