- Feb 22, 2022
-
-
Matthias Schiffer authored
A section can be marked as preseved by setting the gluon_preserve option to 1. In addition the following conditions must hold: - The preserved section must not already exist after OpenWrt's and Gluons setup scripts run. Modifying existing sections is currently unsupported. - Preserved sections must be named, so it can be detected whether a section conflicts with a preexisting one.
-
Matthias Schiffer authored
Allow interface names to change on updates to handle hwconfig -> DSA and similar migrations. On devices with only a single interface, a sysconfig single_ifname is created instead of wan_ifname or lan_ifname to allow separate configuration in site.conf.
-
Matthias Schiffer authored
With the new role-based interface configuration, it would be better to rename the wan/wan6 interfaces to uplink/uplink6, but that would cause unnecessary churn for the firewall configuration, so it is left for a later update. As all interfaces with the 'uplink' role are in the br-wan bridge, it is not possible to assign these to the 'mesh' role independently - instead, br-wan is added as a mesh interface as soon as a single interface has both the 'uplink' and 'mesh' roles. The UCI section for this configuration is now called 'mesh_uplink' instead of 'mesh_wan'. For all interfaces that have the 'mesh', but not the 'uplink' role a second configuration 'mesh_other' is created. If there is more than one such interface, all these interfaces are bridged as well (creating a bridge 'br-mesh_other'). This replaces the 'mesh_lan' section with its optional 'br-mesh_lan' bridge, but can also include interfaces that were not considered "LAN" when interfaces roles are modified (via site.conf or manually).
-
Matthias Schiffer authored
The new configuration generates sections iface_single/lan/wan in /etc/config/gluon. These sections usually refer to a sysconfig-controlled interface list, but adding custom sections with verbatim interfaces names is also possible. Each interface section contains a list of roles. The supported roles are 'client', 'uplink' and 'mesh'. Multiple roles can be configured on the same interface (for example the old 'mesh_on_wan' setting would become 'uplink'+'mesh'). 'client' is subsumed by any other role configured on the same interface ('client'+'mesh' is equivalent to 'mesh'). This property is important, as it allows the Wired Mesh settings in gluon-web-network to simply add and remove the mesh role without having to care what other roles are set - so in the default setup, this would switch between 'client' and 'client'+'mesh' for the LAN interface. By default, the WAN interface has role 'uplink' and the LAN interface 'client'; if only a single interface exists, the roles from the WAN interface are used by default. The default for each of the three interfaces (WAN/LAN/single) can be changed separated in site.conf, superseding the old mesh_on_wan, mesh_on_lan and single_as_lan settings.
-
Matthias Schiffer authored
Do not write files when the content is unchanged. Avoids a few unnecessary filesystem writes when resetting ifname sysconfigs on each upgrade.
-
Matthias Schiffer authored
-
- Jan 28, 2022
-
-
Matthias Schiffer authored
Swap the interfaces so than the PoE input port LAN0 is used for WAN and config mode, and LAN1 becomes LAN. To this end, the code previously used for ar71xx and removed in commit 9fdc57c1 ("treewide: drop ar71xx platform specific code") is reintroduced. Fixes #2384
-
- Jan 23, 2022
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
/etc/config/gluon-core is used for nothing else. As /etc/config/gluon uses a named wireless section, also change the get_first() to get().
-
- Jan 14, 2022
-
-
Luflosi authored
-
Maciej Krüger authored
Co-Authored-By:
Matthias Schiffer <mschiffer@universe-factory.net>
-
Maciej Krüger authored
This copies the code from web-admin and uses it to create a neat cli-accessible summary about a node This could also be extended or possibly have all the data the status page has Co-Authored-By:
Matthias Schiffer <mschiffer@universe-factory.net>
-
- Jan 01, 2022
-
-
Matthias Schiffer authored
-
- Dec 31, 2021
-
-
Matthias Schiffer authored
More migration code from 2016.
-
Matthias Schiffer authored
The file /lib/gluon/version/core hasn't existed since early 2014, so this whole script is obsolete.
-
- Dec 19, 2021
-
-
Matthias Schiffer authored
The migration is done very early, as other upgrade scripts depend on the band setting through platform.device_uses_11a().
-
David Bauer authored
The 'hwmode' setting has been replaced with 'band' in OpenWrt to add support for newer bands outside of 2.4G and 5G. Adjust Gluon accordingly. [Matthias Schiffer: rebased, extended commit message]
-
- Oct 07, 2021
-
-
Matthias Schiffer authored
This removes PKG_VERSION and PKG_RELEASE from most Makefiles, as the value was never useful for Gluon packages; instead, PKG_VERSION is set to 1 in gluon.mk. It also removes two other weird definitions: - gluon-iptables-clamp-mss-to-pmtu replicating the old PKG_VERSION logic from gluon-core, but without the fixed PKG_BUILD_DIR to prevent unnessary rebuilds - gluon-hoodselector set GLUON_VERSION=3
-
- Oct 05, 2021
-
-
Matthias Schiffer authored
Calling git describe directly breaks isolation between the build system and packages. Replace this with proper .config variables, like we already do for GLUON_RELEASE. Also replace the PKG_VERSION hack with a static '1', as we do for other packages - while having those version numbers in opkg was cute, it was also entirely useless. Having a fixed PKG_VERSION allows us to remove the PKG_BUILD_DIR override as well.
-
- Sep 13, 2021
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
Avoid requiring gluon.wireless from gluon.platform, and requiring gluon.platform from various other scripts.
-
- Sep 04, 2021
-
-
Matthias Schiffer authored
- Move site check for prefix4 and extra_prefixes6 to gluon-core, so the rules don't need to be duplicated in several packages. This also fixes gluon-respondd not checking extra_prefixes6 at all when gluon-ebtables-source-filter is not installed as well. - A redundant check for prefix6 is removed from gluon-l3roamd (this was already checked by gluon-core) - A separate check for prefix4 remains in gluon-client-bridge, as the setting in mandatory there
-
- Aug 28, 2021
-
-
Tom Herbers authored
-
- Aug 27, 2021
-
-
citronalco authored
-
- Aug 12, 2021
-
-
micw authored
Co-authored-by:
Michael Wyraz <michael.wyraz@evermind.de>
-
- Aug 11, 2021
-
-
micw authored
-
- Aug 10, 2021
-
-
David Bauer authored
-
- Jul 23, 2021
-
-
Matthias Schiffer authored
Specify conffiles for our packages, so they aren't overwritten during opkg updates. While this only matters during development, it is unintended to have different behaviour for opkg update and full firmware updates.
-
- Jul 17, 2021
-
-
Matthias Schiffer authored
-
David Bauer authored
The PHY lookup helper "find_phy_by_path" could not lookup the PHY name for paths from multi-phy devices. An example for such a path would be: '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0+1' The integer after the plus (+) character determines the PHY index of the specific device in relation to the PHY with the lowest index of the device. For example, if the device provides phy2 and phy3, the above path would describe phy3. In case the device provides phy0 and phy1, it would describe phy1. Rewrite the "find_phy_by_path" function to support those paths as well as regular device paths in a universal manner. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
- Jul 15, 2021
-
-
aiyion.prime authored
[Matthias Schiffer: simplify close_fds() helper and use in child process]
-
- Jul 13, 2021
-
-
David Bauer authored
Delete all default network device sections upon first boot. Only LAN & WAN networks are defined at this point. We are using the legacy way of definiting bridges via the interface sections ifname option. The prior filtering was based upon a single device and didn't take into consideration that DSA interface names can be named arbitrarily. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
Matthias Schiffer authored
With the removal of ramips-rt305x, the last user of GLUON_SPECIALIZE_KERNEL is gone.
-
Matthias Schiffer authored
VoCores aren't exactly useful mesh nodes except for experimentation. They certainly aren't worth maintaining a whole target, in particular one that has a WLAN driver not used by any other target.
-
- Jul 12, 2021
-
-
Matthias Schiffer authored
-
Matthias Schiffer authored
Installing the script into the image allows site checks to run for manual package installations via opkg.
-
- Jul 01, 2021
-
-
David Bauer authored
The file_contains_line helper function was not testing whether a file exists or not prior attempting to read from it. Add this check to circumvent errors on the private WiFi config in case the hwflags file is missing. Reported-by:
Tom Herbers <freifunk@tomherbers.de> Tested-by:
Tom Herbers <freifunk@tomherbers.de> Signed-off-by:
David Bauer <mail@david-bauer.net>
-
David Bauer authored
The relevant entry for the primary MAC location was lost when rebasing the patch on OpenWrt 21.02. Fixes commit ded4b8a7 ("rockchip-armv8: add FriendlyARM NanoPi R2S") Signed-off-by:
David Bauer <mail@david-bauer.net>
-
- Jun 29, 2021
-
-
David Bauer authored
Configure a radio for HE (802.11ax) operation in case it's supported by the hardware. This can be the case for 2.4 GHz as well as 5 GHz. Signed-off-by:
David Bauer <mail@david-bauer.net>
-
- Jun 26, 2021
-
-
David Bauer authored
Multi-port interfaces are stored in the network config as an array using the ports key.
-