- Jul 26, 2018
-
-
Robert Langhammer authored
Remove double square bracket. [[ is a bash or ksh built-in, and cannot be used in a #!/bin/sh script. Signed-off-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Robert Langhammer authored
== is a bash specific alias for = , and should not be used in #!/bin/sh scripts. Not in #!/usr/bin/haserl scripts either, where the shell defaults to /bin/sh. Signed-off-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> - rebased Signed-off-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This is simpler than the previous approach and does not rely on parsing. This fixes: - Interfaces being accounted for multiple times for certain devices - Errors when output of bridge function changes (as with the current OpenWrt master) Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
- Jul 25, 2018
-
-
Fabian Blaese authored
This patch suppresses the messages batman writes to the kernel log when gw_mode is changed. This is done to avoid spamming the log with negligible messages when gw_mode is switched frequently. Fixes: #93 Signed-off-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
Timestamps in hood file currently only change if changes are made. Thus, there is no reason to remove them for comparison. This also fixes the wrong quote characters in the script, which changed the script in a way the timestamps aren't removed right now anyway. After this change, a hood reconfiguration may be triggered by just changing the timestamp at the keyxchange. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
With this patch, changing the hood file happens in memory, so we do not have to write on flash "frequently". Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This will copy to hoodfilewww every 5 minutes! Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
At the moment, we use the same file for detecting changes in a new hood file and for broadcasting the hood information to be used by mesh routers. However, there may be situations where we don't want to broadcast an existing hoodfile. We, on the other hand, cannot delete it then, as we need the file for checking changes in the temporary hoodfile. We also cannot just switch the wXconfig state to achieve this goal, as we need a trigger to do that (which is the same file we are discussing about). So, in this patch, we introduce two files, one for the checksum comparison and one for the hood info broadcast. Those can now be set and deleted (in a later patch) as it is required by their respective tasks. This should also improve code clarity to the reader ... Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Robert Langhammer authored
Signed-off-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Acked-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
-
Adrian Schmutzler authored
To provide data processing information for SSH access without annoying users too much, this adds a pointer to more extensive information to the banner displayed after login. The referenced files then contain similar information to what is shown in the WebUI. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This adds a first version of data processing information to the Web UI's settings page (where the information is entered). Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
According to the upstream repo, vis_mode has been removed since batman-adv 2014.0.0. See openwrt-routing/packages 8a66ed1. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
Fabian Blaese authored
To reduce the number of possible corner cases in the first keyxchangev2 release, this patch removes the sector file with the intention to add it back after release. Signed-off-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Tested-by:
Fabian Bläse <fabian@blaese.de>
-
- Jun 17, 2018
-
-
Adrian Schmutzler authored
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This patch allows to modify the bs-partition on the AC Mesh. Without the patch, the bs partition on the AC Mesh is locked forever. This can be a problem if a) the bs partition has not been updated correctly during initial flash b) the sysupgrade mechanism is altered by OpenWRT in order to account for the flip flop layout Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
Adrian Schmutzler authored
Occationally /proc/net/if_inet6 contains interface IDs with three digits. In this case, the regex in wait_for_ll_address() does not work anymore and alfred is not starting. This patch changes the evaluation so that fields are used instead of the mere position by counting characters. This is a backport from openwrt-routing and can be removed when updating to OpenWRT 18.06, but not for newer versions of 17.01. Fixes #98. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhgammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jun 15, 2018
-
-
Fabian Blaese authored
Signed-off-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhgammer <rlanghammer@web.de>
-
Fabian Blaese authored
Signed-off-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jun 11, 2018
-
-
Tim Niemeyer authored
Fixes #95 This reverts commit 6cc6b4b7. Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Acked-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
Tim Niemeyer authored
Fixes #68 Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Acked-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de>
-
- Mar 04, 2018
-
-
Robert Langhammer authored
Fixes #94 Signed-off-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Mar 03, 2018
-
-
Adrian Schmutzler authored
In commit 5c1d3b1f, conditions were changed so that "wifi" is called almost every run directly before the network status (internet vs. gateway contact vs. wXsta). This causes strange effects configurehood and nodewatcher, which is called at the same time. The fix only does "wifi" if required and waits 10 sec. after that. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Fixes #83 Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Just disable autoconf. Some sysctl's are currently not available due some missing kernel features. Maybe some day they reappear. Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Tim Niemeyer authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Tested-by:
Christian Dresel <fff@chrisi01.de>
-
Adrian Schmutzler authored
Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
- Feb 13, 2018
-
-
Christian Dresel authored
The simplest and fasted way to Fixes #72 Signed-off-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Robert Langhammer <rlanghammer@web.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Feb 10, 2018
-
-
Adrian Schmutzler authored
Code which is reused by other functionalities is put into the fff-hoodutils package, so it can be used without including configurehood. This also allows setting missing dependencies of other packages. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This addresses a bunch of issues: - Previously, only the presence of w2configap was checked. With only 5 GHz, this would have caused a recreation every 5 min. (Note that this is only valid for a 5 GHz only device, as we always create all interfaces for disabled radios) - The two outer if-statements are merged - We now check for presence of wXmesh to enable wXconfigap. Although this is no necessity (as the hood file contains the whole config) this assumes that a disabled wXmesh means no intent of the owner to connect to other devices on this radio. - With the dependency of wXconfigap from wXmesh, this patch now enables the deactivation of hood file transmitting by disabling meshing in the hood file Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
- Jan 28, 2018
-
-
Adrian Schmutzler authored
Bug 1: If devices with hidden SSID are present, the matched SSID in the awk contains the newline (="unknown\n\t"). This destroys the table after the sort. Bug 2: If SSIDs contain ampersands (yes, people do that), they are now converted to &. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
The actual calculation is done in the Monitoring. Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Fabian Bläse <fabian@blaese.de>
-
- Jan 21, 2018
-
-
Tim Niemeyer authored
Fixes: #71 Signed-off-by:
Tim Niemeyer <tim@tn-x.org> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
Adrian Schmutzler authored
This adds data about the clients per interface Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Christian Dresel <fff@chrisi01.de>
-
Fabian Blaese authored
Since the reverted patch, device specific antenna gain is not set for some reason. Reverting the patch in question fixes this issue. THIS SHOULD BE ONLY CONSIDERD AS A TEMPORARY FIX UNTIL THE ISSUE IS FIXED PROPERLY! Fixes: #85 Signed-off-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Fabian Bläse <fabian@blaese.de> Tested-by:
Christian Dresel <fff@chrisi01.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-
Adrian Schmutzler authored
This is a workaround to enable alfred on routers which do not see a configap during initial boot. Fixes: #78 Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by:
Tim Niemeyer <tim@tn-x.org>
-