Only options or values which may contain spaces need them
Signed-off-by: Steffen Pankratz <kratz00@gmx.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Michael Fritscher <michael@fritscher.net>
This is a normal scenario:
-- %< --
originator last-seen (quality) nexthop [interface]: .. possible nexthops ..
A 0.270s (134) A [ w2mesh]: C ( 79) A (134)
B 0.170s (245) B [ w2mesh]: B (245)
C 1.850s (152) C [ w2mesh]: A ( 83) C (152)
-- >% --
Nodewatcher will send only the originator, last-seen, quality, nexthop
and the interface. Nothing about the possible nexthops. Because Netmon
can't show every Originator (to bad performance), we need some filtering,
to only see direct neighbors. At the moment Netmon stores only
originator == nexthop entries. And there is no other way to filter,
because Netmon has only this information.
But this may fail. The problem occurs, if A has a better connection
(e.g. via eth0) with leads to an quality of 255:
-- %< --
A 0.270s (255) A [ eth0]: C ( 79) A (255)
B 0.170s (245) B [ w2mesh]: B (245)
C 1.850s (204) A [ eth0]: A (204) C (152)
-- >% --
In this example, Netmon wouldn't show the connection to C.
This patch doesn't use the originator == nexthop filter. Instead a
filter like "originator is anywhere in the possible nexthops" is used.
With this, we can disable the filtering in Netmon and show at least that
there is directly connection. With the "batctl o" command it is not
possible to show the correct interface for this direct connection.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
-> no new host-key to accept after upgrade
-> no copying of authorized_keys after upgrade
Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
* introduces new file network.mode currently only used for nanostation
* network.mode is added to sysupgrade.conf
=> once configured the the setting should survive an upgrade
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This helps batman-adv to find a new and better gateway.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
This ebtables rules are based on the gluon work.
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: Tobias Klaus <tk+ff@meskal.net>
Suggested-by: Sebastian Laubscher <sebastian@laubscher.name>
Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
- Klammern um if-Statements
- == als Vergleichsoperator gibts nur in der Bash, wir haben aber nur sh (ash) verfuegbar
es ist nicht auszuschliessen, dass die Aenderungen nun andere Fehler zur Folge haben, wo vorher keine waren, da das Script doch irgendwie die "richtigen" Werte hatte.
Die bourne shell (sh) ist nicht so umfangreich wie die bourne again shell (bash).
der Update-Prozess laesst sich nun deutlich verkuerzen:
FILE="openwrt-ar71xx-generic-`uci get board.model.name`-squashfs-sysupgrade.bin"
echo "Loading $FILE"
cd /tmp/
wget http://$(uci get configurator.@api[0].ipv6_address)%$(uci get configurator.@api[0].ipv6_interface)/dev/firmware/current/${FILE}
wget http://$(uci get configurator.@api[0].ipv6_address)%$(uci get configurator.@api[0].ipv6_interface)/dev/firmware/current/${FILE}.md5
md5sum -c ${FILE}.md5 && sysupgrade ${FILE}