[LEDE-DEV] [PATCH] remove pidfile when daemon dies and is not respawned

2016-07-04 Thread Jurgen Van Ham
When a daemon dies unexpectedly and it will not be respawned, the pidfile needs to be removed. (halt is set as !respawn) --- a/service/instance.c2016-07-01 14:22:53.507113056 +0200 +++ b/service/instance.c2016-07-01 14:24:38.541075073 +0200 @@ -513,7 +513,7 @@ uloop_timeout

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-04 Thread Ben Greear
On 07/04/2016 02:53 PM, Baptiste Jonglez wrote: On Mon, Jul 04, 2016 at 10:54:27PM +0200, Baptiste Clenet wrote: Hi Wang, Thank for your answer. May you explain how to do that? I think this should work. The general idea would be: default via 192.168.0.1 dev wlan0 src 192.168.0.12 metric

Re: [LEDE-DEV] [BUG] package/devel/valgrind: cannot build for sunxi

2016-07-04 Thread Heinrich Schuchardt
Debian has the following patch in http://http.debian.net/debian/pool/main/v/valgrind/valgrind_3.11.0-1.debian.tar.xz Description: Fix FTBFS on armhf by correctly detecting the architecture Origin: vendor Bug-Debian: http://bugs.debian.org/730844 Author: Alessandro Ghedini Last-Update: 2013-11-30

[LEDE-DEV] [BUG] package/devel/valgrind: cannot build for sunxi

2016-07-04 Thread Heinrich Schuchardt
Sunxi Lamobo R1 is a subarchitecture of arm_v7. So valgrind should build out of the box. Unfortunately it is disabled, because host_cpu = arm and not arm_v7. A messy workaround is to patch configure.ac adding arm*) AC_MSG_RESULT([ok (${host_cpu})]) ARCH_MAX="arm" ;;

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-04 Thread Baptiste Jonglez
On Mon, Jul 04, 2016 at 10:54:27PM +0200, Baptiste Clenet wrote: > Hi Wang, > Thank for your answer. May you explain how to do that? > I think this should work. The general idea would be: default via 192.168.0.1 dev wlan0 src 192.168.0.12 metric 300 default via 192.168.1.1 dev eth0 src 19

Re: [LEDE-DEV] Mirror Hosting Offer

2016-07-04 Thread Etienne Champetier
Hi Chris, 2016-07-04 18:36 GMT+02:00 Chris Blake : > Hello LEDE Project, > > I am reaching out to see if there is any interest for mirror hosting > as my employer, DigitalOcean, would love to help support the LEDE > Project. If you (LEDE Maintainers) have an account on our platform > currently, or

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-04 Thread Baptiste Clenet
Hi Wang, Thank for your answer. May you explain how to do that? I think this should work. 2016-07-04 12:16 GMT+02:00 Wang Linetkux : > Hi, > I think you can setup two default route with different/proper metric > value. Which means you use one of them as the backup line, and the > other as the ma

[LEDE-DEV] sysupgrade weakness

2016-07-04 Thread reiner otto
sysupgrade is "weak", when having to kill user processes before flashing. Having spent several hours, to figure out, why only a reboot was done, I recognized, that sysupgrade "promises" to kill my private running processes, but does not succeed in doing so. Manual "kill -9 ..." before running s

[LEDE-DEV] Mayor fix for Engenius ESR1750

2016-07-04 Thread reiner otto
There is a mayor bug in the image, built for Engenius ESR1750. First remarks about it have been made here: https://forum.openwrt.org/viewtopic.php?id=55246 I can confirm both bug and the fix proposed there. In short, this has to be done/changed: uci set network.@switch_vlan[0].ports='0t 1 2 3 4'

[LEDE-DEV] netifd , route config behavior inconsistent with Wiki

2016-07-04 Thread Thierry Du Tre
Hi Felix, I noticed an inconsistency with following description on the Wiki page for network config, section type 'route' (IPv4 Routes), option 'gateway' : "Network gateway. If omitted, the gateway from the parent interface is taken; if set to 0.0.0.0 no gateway will be specified for the route"

[LEDE-DEV] Setting packages in Image building config

2016-07-04 Thread Adrian Panella
Hi, I'm a bit confused by the image building options. Can anyone explain what is the difference of setting necessary packages in: - DEFAULT_PACKAGES := in target's makefile - PACKAGES := in Profile/Default, inside image/makefile aren't both applied to all devices? If it were working, what can be s

Re: [LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability

2016-07-04 Thread Luke McKee
I am not a fan of wget, you see opkg already comes with uclient-fetch as a per-requisite. I know wget can be bundled in with busybox, but openwrt opted for their own downloader. I don't know what uses less code. I'm thinking of patching opkg to use tftp (busybox) and tftp:// urls. If someone make

[LEDE-DEV] [PATCH] Mountd: Add sysupgrade functionality.

2016-07-04 Thread Philipp Deppenwiese
Extend the mountd with the ability to apply sysupgrades from mounted devices. Upgrade files are identified by filename and executed through the commandline sysupgrade utility of LEDE. Option List: config mountd 'sysupgrade' option check_filename firmware.bin (required) option s

[LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread adron
From: Sergey Sergeev I did not encapsulate the logic in get_image() because too much code (like dd if=...) expects to work with the file instead of url. And use get_image would lead to repeated data reloads from url. Signed-off-by: Sergey Sergeev --- package/base-files/files/sbin/sysupgrade |

[LEDE-DEV] Mirror Hosting Offer

2016-07-04 Thread Chris Blake
Hello LEDE Project, I am reaching out to see if there is any interest for mirror hosting as my employer, DigitalOcean, would love to help support the LEDE Project. If you (LEDE Maintainers) have an account on our platform currently, or are interested in the offer, let me know. Regards, Chris Blak

[LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread adron
From: Sergey Sergeev I did not encapsulate the logic in get_image() because too much code (like dd if=...) expects to work with the file instead of url. And use get_image would lead to repeated data reloads from url. Signed-off-by: Sergey Sergeev --- package/base-files/files/sbin/sysupgrade |

Re: [LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread Bastian Bittorf
* ad...@yapic.net [04.07.2016 17:27]: > +wget_if_URL(){ > + local url="$1" > + local url_repl_file="/tmp/sysupgrade-URL.bin" empty line here > + case "$url" in > + http://*|https://*|ftp://*) break ;; > + *) return 1 ;; > + esac empty line here > + r

Re: [LEDE-DEV] netifd , route config behavior inconsistent with Wiki

2016-07-04 Thread Felix Fietkau
On 2016-07-04 15:22, Thierry Du Tre wrote: > Hi Felix, > > I noticed an inconsistency with following description on the Wiki page > for network config, section type 'route' (IPv4 Routes), option 'gateway' : > "Network gateway. If omitted, the gateway from the parent interface is > taken; if set

[LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread adron
From: Sergey Sergeev I did not encapsulate the logic in get_image() because too much code (like dd if=...) expects to work with the file instead of url. And use get_image would lead to repeated data reloads from url. Signed-off-by: Sergey Sergeev --- package/base-files/files/sbin/sysupgrade |

[LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread adron
From: Sergey Sergeev I did not encapsulate the logic in get_image() because too much code (like dd if=...) expects to work with the file instead of url. And use get_image would lead to repeated data reloads from url. Signed-off-by: Sergey Sergeev --- package/base-files/files/sbin/sysupgrade |

Re: [LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread Felix Fietkau
On 2016-07-04 12:42, ad...@yapic.net wrote: > From: Sergey Sergeev > > I did not encapsulate the logic in get_image() because too much code > (like dd if=...) expects to work with the file instead of url. And > use get_image would lead to repeated data reloads from url. > > Signed-off-by: Sergey

[LEDE-DEV] [PATCH] base-files: sysupgrade. Added the ability to use URL as source

2016-07-04 Thread adron
From: Sergey Sergeev I did not encapsulate the logic in get_image() because too much code (like dd if=...) expects to work with the file instead of url. And use get_image would lead to repeated data reloads from url. Signed-off-by: Sergey Sergeev --- package/base-files/files/sbin/sysupgrade |

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-04 Thread Wang Linetkux
Hi, I think you can setup two default route with different/proper metric value. Which means you use one of them as the backup line, and the other as the main line. Thanks, Rujun 2016-07-04 16:14 GMT+08:00 Baptiste Clenet : > Hi, > > On my board, I've got a wifi and an ethernet interfaces on t

Re: [LEDE-DEV] [PATCH] netifd: remove wireless device when device fails to setup

2016-07-04 Thread Felix Fietkau
On 2016-07-04 08:52, Eduardo Abinader wrote: > Thanks for the feedback, Felix. > > I will submit another patch(es) with the changes you commented. Ok? Sure, thanks. - Felix ___ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.o

Re: [LEDE-DEV] adding luci to snapshot images

2016-07-04 Thread Rafał Miłecki
On 4 July 2016 at 09:51, First Last wrote: > Could you please add git commit information to openwrt_release file? and why > not change the file name to lede_release? How is this related to LuCI in snapshots? Because some software looks for openwrt_release (e.g. procd). -- Rafał __

[LEDE-DEV] [PATCH procd] system: fix localtime value in ubus info method output

2016-07-04 Thread Rafał Miłecki
Function mktime respects current time zone and calling it results in converting time back to the UTC. It means we were never returning a time for local zone but GMT one. The easiest solution is to use tm_gmtoff from struct tm. Unfortunately this isn't part of POSIX but it seems to be the best idea

Re: [LEDE-DEV] Routing two interfaces on same subnet

2016-07-04 Thread Baptiste Jonglez
On Mon, Jul 04, 2016 at 10:14:26AM +0200, Baptiste Clenet wrote: > Hi, > > On my board, I've got a wifi and an ethernet interfaces on the same > subnet (192.168.0.0/24). Problem is if ethernet cable is unplugged I > can't use wifi anymore, see > > root@eisox:/# ip route > default via 192.168.0.50

[LEDE-DEV] Routing two interfaces on same subnet

2016-07-04 Thread Baptiste Clenet
Hi, On my board, I've got a wifi and an ethernet interfaces on the same subnet (192.168.0.0/24). Problem is if ethernet cable is unplugged I can't use wifi anymore, see root@eisox:/# ip route default via 192.168.0.50 dev eth0 proto static 192.168.0.0/24 dev eth0 proto kernel scope link src 19