| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Internal GPIO pins are used for PoE passthrough setups in multi-port
routers. This patch implemnets control over this hardware feature for
Ubiquiti Nanostations and TP-Link CPE510.
Signed-off-by: Lars Kruse <lists@sumpfralle.de>
SVN-Revision: 46271
|
|
|
|
|
|
| |
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
SVN-Revision: 44446
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This restores normal pre-r43715 200ms blink-period for the System LED we're all accustomed to see while our OpenWrt routers are booting.
Failsafe possibility will now be signalled with a new 100ms blinking, which is easily recognizable from the normal 200ms booting.
So no existing user will be scared by a new 500ms LED pattern, since such a slow pattern could easily be mistaken for something wrong... I was like "ok why my router is collapsing now, is this a bad flash, a kernel panic, or what else" when I've seen it for the first time ;)
Sorry for not having explained myself better in v1 of this patch.
Original:
Preinit, failsafe is possible: 200ms
Preinit, failsafe not possible anymore, booting normally: 200ms
Failsafe entered: 50ms
Now (after preinit_regular has been introduced):
Preinit, failsafe is possible: 200ms
Preinit, failsafe not possible anymore, booting normally: 500ms *here is the "offending" change*
Failsafe entered: 50ms
With my proposed patch:
Preinit, failsafe is possible: 100ms *indicate this condition with a new timing, that prompts the user to press the key if they want to start failsafe*
Preinit, failsafe not possible anymore, booting normally: 200ms *keep this as before*
Failsafe entered: 50ms
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 44056
|
|
|
|
|
|
| |
Signed-off-by: Gerald Kerma <dreagle@doukki.net>
SVN-Revision: 44000
|
|
|
|
|
|
|
|
| |
The enable and reset settings need to be added even when they're false. This is true at least for 'enable', that seems to default to true otherwise.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 43887
|
|
|
|
|
|
|
|
|
|
|
|
| |
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43715
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[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: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 42911
|
|
|
|
|
|
|
|
| |
Return all IPv4 and IPv6 addresses.
Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 42856
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Add a third argument to ucidef_set_interface_raw, which is specifying
the protocol.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 42665
|
|
|
|
|
|
| |
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 42542
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
When looking for the first ipaddr also consider the current prefix just
like network_get_ipaddrs6 does. If ipv6-address was empty the function
did not return the first ipaddr even if the list was non-empty.
fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006
Signed-off-by: Henning Schild <henning@hennsch.de>
SVN-Revision: 42139
|
|
|
|
|
|
|
|
|
| |
Extracted from http://patchwork.openwrt.org/patch/5716/
Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 41639
|
|
|
|
|
|
|
|
|
|
|
| |
Switches /lib/functions/network.sh from jshn based json parsing to
jsonfilter expression while keeping the existing api.
Expensive methods like "network_find_wan" are up to 20x faster now.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 41281
|
|
|
|
|
|
|
|
| |
Function service_kill is deprecated and has no user, so remove it.
Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
SVN-Revision: 40912
|
|
|
|
|
|
|
|
|
| |
This allows services to bind to it at boot time instead of waiting for a
cable to be plugged in
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40773
|
|
|
|
|
|
|
|
| |
(fixes #15496)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40426
|
|
|
|
|
|
|
|
| |
/lib/functions/system.sh
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40411
|
|
|
|
|
|
| |
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40404
|
|
|
|
|
|
| |
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39372
|
|
|
|
| |
SVN-Revision: 39099
|
|
|
|
|
|
| |
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 39006
|
|
|
|
|
|
| |
procedures (#13886)
SVN-Revision: 37345
|
|
|
|
|
|
| |
to take ipv6-prefix-assignment into account, add further helper functions to fetch all ips of a given interface
SVN-Revision: 36942
|
|
|
|
|
|
| |
in different routing tables
SVN-Revision: 36553
|
|
|
|
| |
SVN-Revision: 36384
|
|
|
|
| |
SVN-Revision: 36278
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently, most platforms define such helpers in their own diag.sh
implementation with almost identical code. By factoring out the
common ground it's possible to simplify maintainability and
homogenize the haptics over multiple platforms (so far as is
reasonably practicable, in a next step).
[juhosg:
- fix led_set_attr parameters in led_timer
- add led_morse and status_led_set_morse helpers
- add status_led_blink_{preinit,failsafe} helpers]
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35648
|
|
|
|
| |
SVN-Revision: 35300
|
|
|
|
| |
SVN-Revision: 35287
|
|
|
|
| |
SVN-Revision: 35286
|
|
|
|
| |
SVN-Revision: 35168
|
|
|
|
| |
SVN-Revision: 34794
|
|
|
|
|
|
|
|
|
|
|
| |
The behaviour of calling 'mount' differed depending on whether it called
the busybox-mount, the mount of util-linux, the mount defined in
/lib/functions.sh and /lib/functions/boot.sh
/etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh,
both re-defining 'mount'.
SVN-Revision: 34792
|
|
|
|
| |
SVN-Revision: 34733
|
|
|
|
|
|
| |
ifstatus, use jshn namespaces to support using it concurrently with other jshn users
SVN-Revision: 34725
|
|
|
|
|
|
|
|
|
|
|
| |
- support reading inactive gateways and DNS information in
network_get_gateway(), network_get_dnsserver() and network_get_dnssearch()
by passing "true" as optional last argument
- internally cache fetched values to speed up subsequent accesses to the same
data, introduce network_flush_cache() to clear them
- add some inline function documentation
SVN-Revision: 34722
|
|
|
|
|
|
| |
netifd bump
SVN-Revision: 33391
|
|
|
|
|
|
|
|
| |
Adds capability to add uci-defaults defining RSSI LEDs
Signed-off-by: Daniel Golle <dgolle@allnet.de>
SVN-Revision: 33164
|
|
|
|
|
|
| |
/lib/functions/network.sh
SVN-Revision: 32531
|
|
|
|
|
|
| |
(#11774)
SVN-Revision: 32525
|
|
|
|
|
|
| |
network_find_wan() and network_find_wan6() in /lib/functions/network.sh
SVN-Revision: 32397
|
|
|
|
|
|
| |
wrappers for upcoming netifd iface deferring support
SVN-Revision: 32106
|
|
|
|
| |
SVN-Revision: 31991
|
|
|
|
| |
SVN-Revision: 31978
|
|
|
|
|
|
| |
network_get_physdev() to obtain the underlying iface (if applicable)
SVN-Revision: 31960
|
|
|
|
| |
SVN-Revision: 31937
|
|
|
|
|
|
| |
common procedures to deal with network interfaces. Initially provides network_get_ipaddr(), network_get_ipaddr6(), network_get_subnet() and network_get_subnet6() to determine the primary IP addresses or subnets of a given logical interface.
SVN-Revision: 31935
|
|
|
|
| |
SVN-Revision: 31042
|