Re: [OpenWrt-Devel] [PATCH 2/2] package: add timer led function
Hi Gerald, On Tue, Jan 20, 2015 at 02:20:09PM +0100, drEagle wrote: > Same with this another patch. > Is it missed or lost ? > I do not find any trace at patchworks. > > Do you need that I resubmit it ? Both patches have been merged. Please re-sync your tree. Luka ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/2] package: add timer led function
Hi Luka, Same with this another patch. Is it missed or lost ? I do not find any trace at patchworks. Do you need that I resubmit it ? Regards, Gérald Le 20/12/2014 03:51, Gerald Kerma a écrit : > Add ucidef_set_led_timer to uci-defaults.sh > > Signed-off-by: Gerald Kerma > --- > .../base-files/files/lib/functions/uci-defaults.sh | 20 > > 1 file changed, 20 insertions(+) > > diff --git a/package/base-files/files/lib/functions/uci-defaults.sh > b/package/base-files/files/lib/functions/uci-defaults.sh > index 6ed0bf1..eb5b240 100644 > --- a/package/base-files/files/lib/functions/uci-defaults.sh > +++ b/package/base-files/files/lib/functions/uci-defaults.sh > @@ -120,6 +120,26 @@ EOF > UCIDEF_LEDS_CHANGED=1 > } > > +ucidef_set_led_timer() { > + local cfg="led_$1" > + local name=$2 > + local sysfs=$3 > + local delayon=$4 > + local delayoff=$5 > + > + uci -q get system.$cfg && return 0 > + > + uci batch < +set system.$cfg='led' > +set system.$cfg.name='$name' > +set system.$cfg.sysfs='$sysfs' > +set system.$cfg.trigger='timer' > +set system.$cfg.delayon='$delayon' > +set system.$cfg.delayoff='$delayoff' > +EOF > + UCIDEF_LEDS_CHANGED=1 > +} > + > ucidef_set_rssimon() { > local dev="$1" > local refresh="$2" > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 2/2] package: add timer led function
Hi Luka, Is there patches correct ? I do not find them in the patchworks. Regards, Gérald Le 20/12/2014 03:51, Gerald Kerma a écrit : > Add ucidef_set_led_timer to uci-defaults.sh > > Signed-off-by: Gerald Kerma > --- > .../base-files/files/lib/functions/uci-defaults.sh | 20 > > 1 file changed, 20 insertions(+) > > diff --git a/package/base-files/files/lib/functions/uci-defaults.sh > b/package/base-files/files/lib/functions/uci-defaults.sh > index 6ed0bf1..eb5b240 100644 > --- a/package/base-files/files/lib/functions/uci-defaults.sh > +++ b/package/base-files/files/lib/functions/uci-defaults.sh > @@ -120,6 +120,26 @@ EOF > UCIDEF_LEDS_CHANGED=1 > } > > +ucidef_set_led_timer() { > + local cfg="led_$1" > + local name=$2 > + local sysfs=$3 > + local delayon=$4 > + local delayoff=$5 > + > + uci -q get system.$cfg && return 0 > + > + uci batch < +set system.$cfg='led' > +set system.$cfg.name='$name' > +set system.$cfg.sysfs='$sysfs' > +set system.$cfg.trigger='timer' > +set system.$cfg.delayon='$delayon' > +set system.$cfg.delayoff='$delayoff' > +EOF > + UCIDEF_LEDS_CHANGED=1 > +} > + > ucidef_set_rssimon() { > local dev="$1" > local refresh="$2" > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/2] package: add timer led function
Add ucidef_set_led_timer to uci-defaults.sh Signed-off-by: Gerald Kerma --- .../base-files/files/lib/functions/uci-defaults.sh | 20 1 file changed, 20 insertions(+) diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index 6ed0bf1..eb5b240 100644 --- a/package/base-files/files/lib/functions/uci-defaults.sh +++ b/package/base-files/files/lib/functions/uci-defaults.sh @@ -120,6 +120,26 @@ EOF UCIDEF_LEDS_CHANGED=1 } +ucidef_set_led_timer() { + local cfg="led_$1" + local name=$2 + local sysfs=$3 + local delayon=$4 + local delayoff=$5 + + uci -q get system.$cfg && return 0 + + uci batch