Skip to content
Snippets Groups Projects
  1. May 14, 2017
  2. May 03, 2017
  3. Mar 11, 2017
    • Mathias Kresin's avatar
      base-files: always set proto passed to _ucidef_set_interface() · 0f01253b
      Mathias Kresin authored
      
      Overwrite an already set proto if a new one is passed to
      _ucidef_set_interface() similar to what is done for the interface.
      
      It is required when using ""ucidef_set_interface_wan 'ptm0' 'pppoe'"
      after some initial wan interface configuration is already done by
      ucidef_add_switch.
      
      The "json_is_a protocol string" guard is meant to not reset an earlier
      set interface proto in case something like
      "ucidef_set_interface_lan 'eth0'" is used afterwards.
      
      Signed-off-by: default avatarMathias Kresin <dev@kresin.me>
      0f01253b
  4. Feb 01, 2017
    • Jo-Philipp Wich's avatar
      base-files: emit tagged switch configuration by default · 73d923ed
      Jo-Philipp Wich authored
      
      Instead of only using tagged CPU port configurations when more than one VLAN
      is present on the switch, always emit tagged configurations unless a board
      explicitely opts out of this behaviour by using the previously introduced
      [0-9]u@netdev syntax.
      
      Emitting default tagged configurations has the following benefits:
      
       - Relation of switch vlans to netdevs is easier to understand, especially
         for multi-cpu-port switches
      
       - Adding additional VLANs (e.g. to break out a LAN port for other purposes)
         becomes easier as users are not forced to change the existing untagged
         VLAN to tagged and the existing ifname notation from ethX to ethX.Y
         anymore, drastly reducing the likelyhood of soft-bricks.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      73d923ed
  5. Nov 02, 2016
    • Jo-Philipp Wich's avatar
      base-files: uci-defaults: support requesting untagged switch port configuration · 5e0441aa
      Jo-Philipp Wich authored
      
      Introduce support for a new [0-9]u@netdev syntax to ucidev_add_switch() to let
      board.d network files request default network switch configurations which do
      not use tagged CPU ports.
      
      This commit itself has no effect on generated configurations at the moment
      since we still emit untagged configurations by default but it allows boards to
      opt-out from default tagged configs in case we start emitting tagged settings
      by default.
      
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      5e0441aa
  6. Oct 22, 2016
    • Rafał Miłecki's avatar
      base-files: add ucidef_set_led_usbport for full usbport support · 2187f57d
      Rafał Miłecki authored
      
      This helper allows using usbport trigger directly. It requires usbport
      compatible syntax and supports specifying multiple USB ports, e.g.:
      ucidef_set_led_usbport "usb" "USB" "devicename:colour:function" "usb1-port1" "usb2-port1"
      
      This adds a proper object to the board.json, e.g.
      "usb": {
      	"name": "USB",
      	"type": "usbport",
      	"sysfs": "devicename:colour:function",
      	"ports": [
      		"usb1-port1",
      		"usb2-port1"
      	]
      }
      and supports translating it into uci section.
      
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      2187f57d
  7. Aug 13, 2016
  8. Jun 07, 2016
  9. Mar 10, 2016
  10. Mar 07, 2016
  11. Feb 26, 2016
  12. Feb 25, 2016
  13. Dec 11, 2015
  14. Sep 04, 2015
  15. Jul 14, 2015
  16. Jul 08, 2015
  17. Feb 14, 2015
  18. Jan 17, 2015
  19. Oct 14, 2014
    • John Crispin's avatar
      scripts: fix wrong usage of '==' operator · 20940138
      John Crispin authored
      
      [base-files] shell-scripting: fix wrong usage of '==' operator
      
      normally the '==' is used for invoking a regex parser and is a bashism.
      all of the fixes just want to compare a string. the used busybox-ash
      will silently "ignore" this mistake, but make it portable/clean at least.
      
      this patch does not change the behavior/logic of the scripts.
      
      Signed-off-by: default avatarBastian Bittorf <bittorf@bluebottle.com>
      
      SVN-Revision: 42911
      20940138
  20. Oct 08, 2014
  21. Sep 25, 2014
  22. May 16, 2014
  23. Jan 23, 2014
  24. Apr 22, 2013
  25. Apr 09, 2013
  26. Aug 13, 2012
  27. May 29, 2012
  28. Dec 01, 2011
  29. Nov 22, 2011
  30. Nov 15, 2011
Loading