- Aug 29, 2020
-
-
T-X authored
This allows running a respondd querier and map server behind a Gluon node. For instance at Freifunk Lübeck we now moved the map server behind a Gluon VM and removed batman-adv and fastd from the map server VM to reduce the maintenance work. Increased multicast overhead should be minimal / non existent, as it is unlikely to accidentally have respondd queriers running behind a Gluon node. Signed-off-by:
Linus Lüssing <linus.luessing@c0d3.blue>
-
- Aug 28, 2020
-
-
Matthias Schiffer authored
The rewrite of the feature handling introduced multiple major bugs. One of them was caused by the way Lua's logical operators work: An expression of the form _'autoupdater' and _'web-advanced' would return 'web-advanced' rather than the boolean true when _ returned both strings unchanged (because the features are enabled). As entries with more than a single feature name in their expressions did not set no_default, Gluon would then attempt to add gluon-web-advanced to the package selection, as web-advanced is a "pure" feature. To fix this, and get rid of the annoying nodefault, separate handling of "pure" feature and handling of logical expressions into two separate functions, called feature() and when(). To simplify the feature definitions, the package list is now passed directly to these functions rather than in a table with a single field 'packages'. Fixes: ee5ec5af ("build: rewrite features.sh in Lua")
-
- Aug 19, 2020
-
-
Jan-Tarek Butt authored
Signed-off-by:
Jan-Tarek Butt <tarek@ring0.de>
-
- Aug 15, 2020
-
-
Martin Weinelt authored
-
Matthias Schiffer authored
Default to the alphabetically smallest branch if none is set in site.conf. Also prevent enabling the autoupdater when no branches exist.
-
Matthias Schiffer authored
The new options are CONFIG_GLUON_AUTOUPDATER_BRANCH and CONFIG_GLUON_AUTOUPDATER_ENABLED and allow to control the default branch and default enable status separately. The `or ''` fallback in targets/generic is removed, as GLUON_ENV will set all variables in GLUON_VARS, making previously non-existing variables exist with an empty value.
-
Matthias Schiffer authored
We already have a proper message when the creation of an alias fails because of a name conflict. Also add a message when the primary filename of a domain config is already occupied by another domain's alias. Also add an 'Error:' prefix to the existing message to easier to see.
-
- Aug 14, 2020
-
-
Matthias Schiffer authored
Reorder scripts so that the mesh_lan interface is accounted for. Two other firewall upgrade scripts (mesh-babel and l3roamd) are reordered as well. While there seems to be no hard dependency at the moment, it makes sense to run the basic setup first, also to avoid problems with future changes. Closes: #2090 Fixes: ed094bc6 ("gluon-core: firewall: Allow custom gluon_wired interfaces (#2041)")
-
- Aug 08, 2020
-
-
David Bauer authored
This adds the wireless client count for 2.4GHz and 5 GHz radios to the status page. Previously, only the total client count advertised by the mesh protocol was visible.
-
- Jul 05, 2020
-
-
David Bauer authored
This will hide the outdoor mode setting on compatible devices in case the defined channels should be preserved. Otherwise a user might be under the impression their device is compliant with outdoor operation when in reality it still uses prohibited channels.
-
Matthias Schiffer authored
Allow replacing the default OSM layer with a custom XYZ layer in site.conf.
-
- Jul 03, 2020
-
-
Matthias Schiffer authored
Replace the ugly arrow shown in Firefox with a custom SVG arrow. Tested and working in Firefox, Chrome and Edge. The arrow doesn't show in IE, but the gluon-web-model JavaScript is already severely broken in IE, so we don't care.
-
- Jul 02, 2020
-
-
Matthias Schiffer authored
Remove unused and obsolete code.
-
Matthias Schiffer authored
-
Matthias Schiffer authored
-
Matthias Schiffer authored
-
Matthias Schiffer authored
-
Matthias Schiffer authored
-
- Jul 01, 2020
-
-
Matthias Schiffer authored
- #pragma once include guard - include string.h to get memset and memcmp prototypes to fix respondd provider build warning
-
Matthias Schiffer authored
When the network connectivity is bad, routers may not appear in the translation tables, or there may be no originator with TQ >0. Such conditions to not warrant spamming the log with error messages.
-
Matthias Schiffer authored
-
Matthias Schiffer authored
The `features` file is converted to a Lua-based DSL. A helper function `_` is used in the DSL; this will return the original string for enabled features, and nil for disabled features. This allows to use boolean operations on features without making the code too verbose. Besides having more readable and robust code, this also fixes the bug that all files `packages/*/features` were evaluated instead of only using the feature definitions of currently active feeds.
-
- Jun 30, 2020
-
-
Matthias Schiffer authored
This script is an implementation detail - let's not clutter the global $PATH namespace with a script with such a generic name.
-
Matthias Schiffer authored
When gluon.core.switch_domain is set, it replaces the old domain. This also replaces an unnecessary uci:commit() with uci:save().
-
Matthias Schiffer authored
-
Matthias Schiffer authored
The package rebuild logic of OpenWrt only checks regular files. Avoid symlinks in the files directory to make rebuilds more robust.
-
David Bauer authored
This commit changes the behavior for the wan-dnsmasq to read the interfaces to update the DNS servers on from flag-files. This way, external custom packages which add a custom VPN WAN interface can update the DNS server gluon is using for WAN resolving.
-
- Jun 21, 2020
-
-
Matthias Schiffer authored
On lantiq, the default WAN ifname is 'dsl0' even on devices that have a separate WAN port. At least on devices using swconfig we can override this with the switch port labelled as 'wan'.
-
- Jun 14, 2020
-
-
Matthias Schiffer authored
Instead of looking at the initial UCI config, we can read this information from board.json.
-
- Jun 13, 2020
-
-
Matthias Schiffer authored
With very bad timing, it is possible that the teardown script of a gluon_mesh interface runs when bat0 was just created, but primary0 is not yet added to it. Although there is no hardif to remove in this case, bat0 will still be deleted, because there is no hardif in bat0. Disable the interface removal logic by passing `-M` to `batctl interface`.
-
- Jun 12, 2020
-
-
Matthias Schiffer authored
There is no setting to explicitly enable mesh interfaces in the config wizard, so we need to enable mesh interfaces by default when the outdoor mode is disabled (unless site.conf dictates otherwise). The simplest way to achieve this is to delete the 5GHz mesh interface sections when outdoor mode is disabled: 200-wireless would delete and recreate them a moment later anyways, but by deleting them earlier we ensure that the disabled status is initialized from site.conf again.
-
Matthias Schiffer authored
When disabling outdoor mode, 5GHz mesh interfaces should be enabled by default again (unless disabled in site.conf).
-
- Jun 11, 2020
-
-
Matthias Schiffer authored
Because is_disabled() was always returning true or false, the first_non_nil() would never actually check the default setting from site.conf. This was broken since v2017.1. Fixes: 6cf03bab ("treewide: replace normal uses of luci.model.uci with simple-uci to reduce LuCI dependencies")
-
- Jun 10, 2020
-
-
David Bauer authored
Backporting the MFP patch allows us to utilize WPA3 features on this target. Tested on TP-Link Archer C20i
-
- Jun 06, 2020
-
-
Matthias Schiffer authored
With 11a3b566 ("gluon-web-model: add dependency support for sections"), a "reset" function was added to all model nodes. This conflicts with the "reset" field of the Form object, making reset buttons show labels like "function: 0xbb8d50" and possibly breaking form processing when packages override the reset field.
-
Matthias Schiffer authored
The interfaces should always exist and just be disabled when outdoor mode is enabled. Not creating them at all leads to an issue in the advanced wifi settings where an additional reload of the page is necessary after enabling or disabling the ourdoor mode to make the mesh VIF options appear or disappear.
-
Matthias Schiffer authored
Instead of relying on the existence of interface sections only (which is still used for the case of interface types that are not configured at all in the site config), add a proper dependency. This fixes section visiblity with enabled outdoor mode after the following fix, and gives the user immediate feedback (allowing to disable outdoor mode and enable meshing in a single step).
-
Matthias Schiffer authored
- Return early - Rename to has_active_interfaces(), as it returns a boolean
-
Matthias Schiffer authored
200-wireless will add or remove the mesh network sections of /etc/config/network. Commit this file, so the modified setting doesn't get lost on reboot. Fixes: #2048
-
- Jun 05, 2020
-
-
Matthias Schiffer authored
Validation errors are mostly handled in the frontend (by displaying invalid fields with a red background). There was some code left in the backend for handling different kinds of errors, and returning custom error messages from validate(), but the resulting value was not used anywhere.
-