summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/bin/config_generate
Commit message (Collapse)AuthorAgeFilesLines
* board.d: add support for gpio_switch sectionsJo-Philipp Wich2015-12-041-0/+21
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47762
* base-files: board.d: support dsl modems, atm bridges and pppoe protocolJo-Philipp Wich2015-12-041-0/+50
| | | | | | | | | | | This adds support for specifying the dsl modem, atm bridge configs and setting the pppoe protocol for wan. These additions are required to port the Lantiq target to board.d. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47750
* base-files: board.d: support specifiying the protocol of lan and wanJo-Philipp Wich2015-12-031-11/+21
| | | | | | | | | Some boards, e.g. the Sheeva Plug, require the lan interface to be set to DHCP instead of a static address, therfore support that. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47732
* base-files: board.d: support timer ledsJo-Philipp Wich2015-12-031-0/+10
| | | | | | | | Add ucidef_set_led_timer() and handling for it to config_generate. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47731
* base-files: uci-defaults-new, config_generate: refactor code and drop old vlansJo-Philipp Wich2015-12-031-178/+49
| | | | | | | | | | | | | | | Remove support for now unused ucidef_add_switch_vlan(), move port->vlan and vlan->interfaces conversion to uci-defaults-new.sh and massively simplify config_generate. This change prepares the following upcoming steps: * Eliminate use of ucidef_set_interface_lan_wan() for switch only devices * Merge ucidef_add_switch() with ucidef_add_switch_ports() Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47719
* base-files: config_generate: add missing chunks of force tag supportJo-Philipp Wich2015-12-031-7/+9
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47718
* base-files: uci-defaults-new, config_generate: allow force tagged cpu portsJo-Philipp Wich2015-11-301-3/+5
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47679
* base-files: uci-defaults-new: only emit force_link for additional ifacesJo-Philipp Wich2015-11-301-1/+7
| | | | | | | | | Only se4t the force_link property for non-lan, non-wan ifaces as it is unnecessary in the default cases. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47675
* base-files: uci-defaults-new, config_generate: support for gpio ledsJo-Philipp Wich2015-11-261-0/+10
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47660
* base-files: config_generate: regroup led generator codeJo-Philipp Wich2015-11-261-4/+16
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47659
* base-files: uci-defaults-new: remove ucidef_set_led_interface()Jo-Philipp Wich2015-11-261-1/+1
| | | | | | | | | The only user was the hg255d board and config_generate did not even emit proper uci for it. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47658
* base-files: config_generate: support rssi ledsJo-Philipp Wich2015-11-261-2/+39
| | | | | | | | Add support for emitting rssi monitor and led configuration sections. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47656
* base-files: config_generate: reformat for better readability and quote variablesJo-Philipp Wich2015-11-261-112/+124
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47654
* base-files: config_generate: handle switch port attributes and better group ↵Jo-Philipp Wich2015-11-251-7/+23
| | | | | | | | json_select Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47648
* base-files: config_generate: do not remove previously generated interfacesJo-Philipp Wich2015-11-251-2/+0
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47647
* base-files: config_generate: properly handle multiple switchesJo-Philipp Wich2015-11-251-0/+10
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47646
* base-files: config_generate: support autogenerating vlansJo-Philipp Wich2015-11-241-3/+117
| | | | | | | | | Add support for generating vlans solely from the port layout description given through ucidef_add_switch_ports(). Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47639
* base-files: config_generate: honour port_mask property (#20963)Jo-Philipp Wich2015-11-241-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47609
* base-files: config_generate did not handle setups with more than 1 switch ↵John Crispin2014-10-271-5/+4
| | | | | | | | properly Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43088
* network: Unbind DHCPv6 from underlying interfacesSteven Barth2014-10-081-1/+1
| | | | | | | | | This allows IPv6 to set up without IPv4 being up thus IPv6-only or IPv6+DS-Lite working with the default config. Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 42848
* base-files: properly generate the ulaJohn Crispin2014-08-221-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42261
* base-files: wan6 should reference wan intead of referencing itself.John Crispin2014-08-181-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42199
* base-files: add a hardware detection layerJohn Crispin2014-08-181-0/+173
this allows targets to use the new uci-default helper which will generate a file called /etc/board.json. a tool called /bin/config_generate can then be used to generate the default uci settings. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42185