Re: [LEDE-DEV] Call defines for minifying scripting languages

2016-10-04 Thread Zefir Kurtisi
On 10/03/2016 01:00 PM, Jan-Tarek Butt wrote: > Hi, > > My Idea ist to create calldefs to minify all scriptes there are > interpreted by run time. > > As example see the mail "[PATCH] LuaSrcDiet call define for lua > code Minifying". > > I plan to write also calldefs for shellscripts, python

Re: [LEDE-DEV] [PATCH] ubus cli: wait_for: fix race causing false timeouts

2016-10-07 Thread Zefir Kurtisi
On 10/07/2016 02:15 PM, Alexandru Ardelean wrote: > On Fri, Oct 7, 2016 at 3:09 PM, Felix Fietkau wrote: >> Instead of introducing yet another timer, wouldn't it also be possible >> to close this race window by registering the event handler before >> attempting the lookup? >> >> -

[LEDE-DEV] Need help with package dependencies

2016-10-18 Thread Zefir Kurtisi
Hi, to those understanding the package dependency logic by heart, I'm trying to achieve something I assumed to be common, but fail to get there with the help of the available documentation. The short version is this: * package A has an optional feature X provided by package B * package B is

Re: [LEDE-DEV] replacing files in base system from a package?

2016-10-17 Thread Zefir Kurtisi
On 10/16/2016 01:04 AM, Jo-Philipp Wich wrote: > Hi Karl, > > let me introduce a not strictly new way but another heavily under > documented buildroot feature which you can use to implement custom > modifications to packages which do not require source code edits. > Wow! - this really deserves

Re: [LEDE-DEV] replacing files in base system from a package?

2016-11-28 Thread Zefir Kurtisi
On 11/25/2016 08:14 AM, Rafał Miłecki wrote: > On 16 October 2016 at 01:04, Jo-Philipp Wich wrote: >> let me introduce a not strictly new way but another heavily under >> documented buildroot feature which you can use to implement custom >> modifications to packages which do not

[LEDE-DEV] [PATCH v2] procd: fix build when DEBUG is set

2016-10-13 Thread Zefir Kurtisi
] #define DEBUG(level, fmt, ...) do { \ ^ :0:0: note: this is the location of the previous definition cc1: all warnings being treated as errors This patch fixes the issue by renaming the build flag to UDEV_DEBUG (since it is only used in udevtrigger). Signed-off-by: Zefir Kurtisi <zefir.kurt..

Re: [LEDE-DEV] [PATCH] ubus cli: wait_for: fix race causing false timeouts

2016-10-12 Thread Zefir Kurtisi
On 10/07/2016 03:19 PM, Zefir Kurtisi wrote: > On 10/07/2016 02:15 PM, Alexandru Ardelean wrote: >> On Fri, Oct 7, 2016 at 3:09 PM, Felix Fietkau <n...@nbd.name> wrote: >>> Instead of introducing yet another timer, wouldn't it also be possible >>> to close this rac

[LEDE-DEV] [PATCH] scripts: fix build warning when overriding packages

2016-10-12 Thread Zefir Kurtisi
to be sorted and prevents that false warning. Signed-off-by: Zefir Kurtisi <zefir.kurt...@neratec.com> --- scripts/package-metadata.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package-metadata.pl b/scripts/package-metadata.pl index 44494ef..0b8f983

Re: [LEDE-DEV] replacing files in base system from a package?

2016-12-02 Thread Zefir Kurtisi
On 12/01/2016 10:29 PM, Rafał Miłecki wrote: > On 1 December 2016 at 12:48, Zefir Kurtisi <zefir.kurt...@neratec.com> wrote: >> On 12/01/2016 08:28 AM, Rafał Miłecki wrote: >>> So you still may end up with base-files installed and /etc/banner >>> being differen

Re: [LEDE-DEV] Difference between AutoLoad vs. AutoProbe for kernel modules?

2017-01-10 Thread Zefir Kurtisi
On 01/10/2017 09:20 AM, John Crispin wrote: > > > On 10/01/2017 09:17, Baptiste Jonglez wrote: >> On Tue, Jan 10, 2017 at 07:56:36AM +0100, John Crispin wrote: > While investigating an issue with module loading order¹, I discovered > that > some kernel packages use AutoProbe, like

Re: [LEDE-DEV] Question about rpcd uci::state

2017-03-06 Thread Zefir Kurtisi
On 03/06/2017 01:15 PM, Jo-Philipp Wich wrote: > Hi, > >> the uci ubus service (part of rpcd) provides the method 'state' which from >> reading >> the source code is expected to provide the current state of an option >> ignoring >> pending changes. > > No it is a method to provide access to

[LEDE-DEV] Question about rpcd uci::state

2017-03-06 Thread Zefir Kurtisi
Hi Jo, all, the uci ubus service (part of rpcd) provides the method 'state' which from reading the source code is expected to provide the current state of an option ignoring pending changes. At my side it does not (shows the same as 'get'): > root@LEDE:~# ubus call uci get '{"config":"system",

[LEDE-DEV] [PATCH v2] ubox/logread: add re-connect capability

2017-11-24 Thread Zefir Kurtisi
to logd and re-issue the original request. Signed-off-by: Zefir Kurtisi <zefir.kurt...@neratec.com> --- v2: in follow mode, don't exit if the initial ubus lookup for logd fails log/logread.c | 143 +- 1 file changed, 91 insertions(

[LEDE-DEV] [RFC 1/1] base-files/etc/rc.common: allow services to overwrite PROCD functions

2017-11-20 Thread Zefir Kurtisi
PROCD services can't overwrite those functions defined in the USE_PROCD body (like stop()), since the initfile is sourced before. This change moves the sourcing below and with that allows PROCD init scripts to overwrite them. Signed-off-by: Zefir Kurtisi <zefir.kurt...@neratec.com> --- p

[LEDE-DEV] [RFC 0/1] allow services to overwrite PROCD functions

2017-11-20 Thread Zefir Kurtisi
if this is on purpose, therefore my proposed change to move the sourcing of initscript further down is RFC. Zefir Kurtisi (1): base-files/etc/rc.common: allow services to overwrite PROCD functions package/base-files/files/etc/rc.common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [LEDE-DEV] [RFC 1/1] base-files/etc/rc.common: allow services to overwrite PROCD functions

2017-11-21 Thread Zefir Kurtisi
On 11/20/2017 08:46 PM, Felix Fietkau wrote: > On 2017-11-20 14:25, Zefir Kurtisi wrote: >> On 11/20/2017 01:27 PM, Felix Fietkau wrote: >>> On 2017-11-20 11:20, Zefir Kurtisi wrote: >>>> PROCD services can't overwrite those functions defined in the >>&g

Re: [LEDE-DEV] [RFC 1/1] base-files/etc/rc.common: allow services to overwrite PROCD functions

2017-11-20 Thread Zefir Kurtisi
On 11/20/2017 01:27 PM, Felix Fietkau wrote: > On 2017-11-20 11:20, Zefir Kurtisi wrote: >> PROCD services can't overwrite those functions defined in the >> USE_PROCD body (like stop()), since the initfile is sourced >> before. >> >> This change moves the so

[LEDE-DEV] [PATCH] ubox/logread: add re-connect capability

2017-11-21 Thread Zefir Kurtisi
to logd and re-issue the original request. Signed-off-by: Zefir Kurtisi <zefir.kurt...@neratec.com> --- log/logread.c | 142 +- 1 file changed, 90 insertions(+), 52 deletions(-) diff --git a/log/logread.c b/log/logread.c index 784d1f9..9

Re: [LEDE-DEV] [PATCH] umdns: Replace unnecessary memset calls with {}.

2017-11-08 Thread Zefir Kurtisi
On 11/07/2017 09:24 PM, Rosen Penev wrote: > Less verbose > > Signed-off-by: Rosen Penev > --- > interface.c | 22 -- > 1 file changed, 8 insertions(+), 14 deletions(-) > > diff --git a/interface.c b/interface.c > index 7f814d2..18dee52 100644 > ---