Skip to content
Snippets Groups Projects
  1. Feb 22, 2022
    • Matthias Schiffer's avatar
      gluon-core: preserve explicitly marked network and system sections · a671b508
      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.
      Unverified
      a671b508
    • Matthias Schiffer's avatar
      gluon-core, gluon-setup-mode: reset ifname sysconfigs on each update, introduce single_ifname · 316e96a4
      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.
      Unverified
      316e96a4
    • Matthias Schiffer's avatar
      treewide: use interface roles as basis for network configuration · c779d123
      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).
      Unverified
      c779d123
    • Matthias Schiffer's avatar
      gluon-core: initialize interfaces role configuration · 4b8251c9
      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.
      Unverified
      4b8251c9
    • Matthias Schiffer's avatar
      gluon-core: sysconfig: avoid unnecessary writes · 05c29512
      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.
      Unverified
      05c29512
    • Matthias Schiffer's avatar
  2. Jan 28, 2022
  3. Jan 23, 2022
  4. Jan 14, 2022
  5. Jan 01, 2022
  6. Dec 31, 2021
  7. Dec 19, 2021
  8. Oct 07, 2021
    • Matthias Schiffer's avatar
      Set PKG_VERSION in gluon.mk · f419db58
      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
      f419db58
  9. Oct 05, 2021
    • Matthias Schiffer's avatar
      gluon-core, gluon-site: get version numbers from .config · a6187cce
      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.
      Unverified
      a6187cce
  10. Sep 13, 2021
  11. Sep 04, 2021
    • Matthias Schiffer's avatar
      treewide: clean up site checks for prefix[46] and extra_prefixes6 · 1ae70469
      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
      Unverified
      1ae70469
  12. Aug 28, 2021
  13. Aug 27, 2021
  14. Aug 12, 2021
  15. Aug 11, 2021
  16. Aug 10, 2021
  17. Jul 23, 2021
  18. Jul 17, 2021
  19. Jul 15, 2021
  20. Jul 13, 2021
  21. Jul 12, 2021
  22. Jul 01, 2021
  23. Jun 29, 2021
  24. Jun 26, 2021
Loading