Re: [PATCH v2] vxlan: allow for dynamic source ip selection

2020-11-27 Thread Bastian Bittorf
On Tue, Nov 24, 2020 at 04:26:29AM +0100, Johannes Kimmel wrote: > Fixes: FS#3426 > Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3426 > > V2: > - bump PKG_RELEASE > - add small explaination about behaviour changes > > Signed-off-by: Johannes Kimmel

[OpenWrt-Devel] wrong configured spam-filter for openwrt-dev

2015-04-30 Thread Bastian Bittorf
while sending a mail to openwrt-dev, i got this answer, which doesnt make any sense, because the list only accepts "registered" users anyway: : host mail.openwrt.org[78.24.191.176] said: 554 5.7.1 Service unavailable; Client host [176.9.57.138] blocked using bl.spamcop.net; Blocked - see http://ww

Re: [OpenWrt-Devel] Thoughts on shellcheck?

2015-05-04 Thread Bastian Bittorf
* Eric Schultz [03.05.2015 20:28]: > Hey, I wanted to let folks know about this open source tool for finding > errors in shell scripts that I stumbled on: > https://github.com/koalaman/shellcheck. Not sure on how applicable it will > be to the complex features that OpenWrt uses but if it worked we

[OpenWrt-Devel] uhttpd / startup-error without a message

2015-05-11 Thread Bastian Bittorf
today I was searching for a non-running uhttpd and recognized, that there are no error messages anymore if something goes wrong. in 62ff68fb / r38023 # procd: convert various packages to procd style init.d scripts # Signed-off-by: John Crispin the debug-output was commented out. was this intende

Re: [OpenWrt-Devel] uhttpd / startup-error without a message

2015-05-11 Thread Bastian Bittorf
* Jo-Philipp Wich [11.05.2015 10:29]: > this is already fixed in trunk. The uhttpd stderr is relayed to syslog > there. thank you - i see: this is not very intuitive. can this be send to console when user is interactive? (like: loggger -s message) bye, bastian ___

Re: [OpenWrt-Devel] uhttpd / startup-error without a message / procd interactive logging

2015-05-11 Thread Bastian Bittorf
* Jo-Philipp Wich [11.05.2015 11:47]: > > this is not very intuitive. can this be send to console > > when user is interactive? (like: loggger -s message) > > Not easily as it is procd logging the services stderr. One can implement > a "test" or "debug" start action though which would calculate t

Re: [OpenWrt-Devel] uhttpd / startup-error without a message / procd interactive logging

2015-05-11 Thread Bastian Bittorf
* Jo-Philipp Wich [11.05.2015 12:34]: > > it think thats too special - there should be a generic way to > > get direct feedback on the commandline when something fails without > > doing magic. what if we e.g. 'export INTERACTIVE=1' via /etc/profile > > so procd / a called script is aware of this?

Re: [OpenWrt-Devel] linux / overlay / OpenWrt / problems with full working dir

2015-05-19 Thread Bastian Bittorf
* Miklos Szeredi [19.05.2015 11:19]: > The work directory is needed for atomic copy-up and similar. It is not > actually > necessary to mount a read-only overlay. Post 4.0 it is possible to mount the > overlay without workdir (but even then it won't happen automatically in case > the > upper f

[OpenWrt-Devel] [PATCH] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-19 Thread Bastian Bittorf
runtime tested on ar71xx with kernel 3.18.11 this paritially fixes #19564 Signed-off-by: Bastian Bittorf --- ...unt-read-only-if-workdir-can-t-be-created.patch | 114 1 file changed, 114 insertions(+) create mode 100644 target/linux/ar71xx/patches-3.18/910-overlayfs

[OpenWrt-Devel] Trac / disk-full? (error while writing to spool file)

2015-05-20 Thread Bastian Bittorf
while editing a ticket, i saw: Warning: The change has been saved, but an error occurred while sending notifications: (451, 'Error while writing spool file') bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwr

Re: [OpenWrt-Devel] Chaos Calmer 15.05-rc1 / git-checkout

2015-05-20 Thread Bastian Bittorf
* Steven Barth [20.05.2015 19:43]: > http://downloads.openwrt.org/chaos_calmer/15.05-rc1/ Thank you! when will this work?: git clone git://git.openwrt.org/15.05/openwrt.git > * Known Issues > - libusb-1.0 is currently not installable (#19668). This is already this is a joke 8-) there are ~

Re: [OpenWrt-Devel] [PATCH] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-21 Thread Bastian Bittorf
* Christian Mehlis [21.05.2015 12:49]: > >+--- a/fs/overlayfs/super.c > > b/fs/overlayfs/super.c > >+@@ -529,7 +529,7 @@ static int ovl_remount(struct super_block *sb, int > >*flags, char *data) > > this function was added with linux 4.0, so your patch for 3.18 does > not apply. > > Can you

[OpenWrt-Devel] working with quilt from './staging_dir/host/bin/quilt'

2015-05-21 Thread Bastian Bittorf
on my buildserver i cannot install packages and must use e.g. './staging_dir/host/bin/quilt'. but quilt does not start with: make target/linux/{clean,prepare} V=s QUILT=1 bastian@gcc20:~/openwrt$ which quilt || echo missing missing bastian@gcc20:~/openwrt$ ./staging_dir/host/bin/quilt --version

Re: [OpenWrt-Devel] working with quilt from './staging_dir/host/bin/quilt'

2015-05-21 Thread Bastian Bittorf
* Jo-Philipp Wich [21.05.2015 15:18]: > Did you try something like > export PATH="$PATH:/home/bastian/openwrt/staging_dir/host/bin" ? meanwhile yes, but it does not work like i exspected. should'nt quilt open, when a patch cannot be applied cleanly? bye, bastian _

Re: [OpenWrt-Devel] [PATCH] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-21 Thread Bastian Bittorf
* Christian Mehlis [21.05.2015 12:49]: > Can you give me a hint to make it work with 3.18? can you please try to apply the appended patch with git am <$file make target/linux/clean make bye, bastian >From f5d917da8665f1a3c79e5beb34acea7daf019ff5 Mon Sep 17 00:00:00 2001 From: Bastia

Re: [OpenWrt-Devel] working with quilt from './staging_dir/host/bin/quilt'

2015-05-21 Thread Bastian Bittorf
* Jo-Philipp Wich [21.05.2015 20:50]: > > meanwhile yes, but it does not work like i exspected. > > should'nt quilt open, when a patch cannot be applied cleanly? > > Uhm no. At least I never encountered such behavior. ok, lets say i have copied a patch into the kernel-patches folder which cannot

Re: [OpenWrt-Devel] working with quilt from './staging_dir/host/bin/quilt'

2015-05-22 Thread Bastian Bittorf
* Jo-Philipp Wich [22.05.2015 07:16]: > If the patches all apply despite fuzz: [...] thank you very much - it works now! bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/open

Re: [OpenWrt-Devel] [PATCH] zram-swap: set a high priority for the swap

2015-05-27 Thread Bastian Bittorf
* Juan Orti Alcaine [26.05.2015 07:59]: > - swapon "$zram_dev" > + swapon -p 100 "$zram_dev" please use at least: swapon -p X $dev || swapon $dev so it can work even without '-p' option, which is optional in busybox. bye, bastian

[OpenWrt-Devel] [PATCH v2] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-27 Thread Bastian Bittorf
This is the case e.g. if JFFS2 partition is full. see: https://www.mail-archive.com/linux-unionfs@vger.kernel.org/msg00246.html runtime tested on ar71xx with kernel 3.18.14 and r45772 (rebased) this paritially fixes #19564 Signed-off-by: Bastian Bittorf --- ...-overlayfs-fallback-to-readonly

Re: [OpenWrt-Devel] [PATCH v2] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-27 Thread Bastian Bittorf
* Jo-Philipp Wich [27.05.2015 18:40]: > This should get corrected (and upstream notified about it as well). e.g. 'failed to create work directory'? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cg

[OpenWrt-Devel] [PATCH v3] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-27 Thread Bastian Bittorf
: Bastian Bittorf --- ...-overlayfs-fallback-to-readonly-when-full.patch | 109 1 file changed, 109 insertions(+) create mode 100644 target/linux/ar71xx/patches-3.18/910-overlayfs-fallback-to-readonly-when-full.patch diff --git a/target/linux/ar71xx/patches-3.18/910

[OpenWrt-Devel] menuconfig: unselect usign / build without opkg

2015-05-29 Thread Bastian Bittorf
while working on a minimal image, i tried to build without usign. is it possible to let it depend on opkg? can i send a patch for this? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/

Re: [OpenWrt-Devel] [PATCH v4] [kernel] upstream fix: mount overlayfs r/o if workdir cannot be created

2015-05-29 Thread Bastian Bittorf
* Christian Mehlis [29.05.2015 19:00]: > this patch is superfluous because it's already merged... Thomas is right, i send it only for ar71xx, but it should be in the generic 3.18-patchfolder. I'am already compiling some other platforms and test it. if ok, i will send v5 which will revert the old

Re: [OpenWrt-Devel] [PATCH/resend] [odhcp6c] script: only call firewall, if installed

2015-05-31 Thread Bastian Bittorf
* Bastian Bittorf [23.10.2014 11:28]: > odhcp6c: script: only call firewall, if installed > > we dont use fw3, so i was wondering about error-messages in syslog > about fw3. check if 'fw3' is in place, before calling it. > > Signed-off-by: Bastian Bittorf > ---

[OpenWrt-Devel] [PATCH] odhcp6c: script: only call firewall, if installed

2015-05-31 Thread Bastian Bittorf
We dont use fw3, so i was wondering about error-messages in syslog about fw3. check if 'fw3' is in place, before calling it. Signed-off-by: Bastian Bittorf --- package/network/ipv6/odhcp6c/files/dhcpv6.script |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [OpenWrt-Devel] [PATCH/resend] [odhcp6c] script: only call firewall, if installed

2015-05-31 Thread Bastian Bittorf
* Steven Barth [31.05.2015 20:56]: > The patch is malformed and cannot be applied. i just sent a rebased version (the old was from 2014). bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mail

Re: [OpenWrt-Devel] [PATCH] odhcp6c: script: only call firewall, if installed

2015-06-01 Thread Bastian Bittorf
* Steven Barth [01.06.2015 10:46]: > Is that okay with you as well https://dev.openwrt.org/changeset/45867 ? it's ok for me, but IMHO not the proper way, because you are hiding errors, if there are any... bye, bastian ___ openwrt-devel mailing list ope

[OpenWrt-Devel] [gre...@linuxfoundation.org: Patch "ovl: mount read-only if workdir can't be created" has been added to the 4.0-stable tree]

2015-06-03 Thread Bastian Bittorf
asons too. There's no reason that the mount itself should fail, overlayfs can work fine without a workdir, as long as the overlay isn't modified. So mount it read-only and don't allow remounting read-write. Add a couple of WARN_ON()s for the impossible case of workdir being used d

[OpenWrt-Devel] [PATCH] [base-files] show hint when JFFS2-partition is full and overlayfs mounted read-only

2015-06-03 Thread Bastian Bittorf
/overlay/upper/... Signed-off-by: Bastian Bittorf --- package/base-files/files/etc/profile |4 1 file changed, 4 insertions(+) diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile index 3dd58e1..007baf0 100644 --- a/package/base-files/files/etc

Re: [OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

2015-06-10 Thread Bastian Bittorf
* Hendrik Lüth [10.06.2015 12:58]: > + for i in /etc/profile.d/* ; do > +if [ -r $i ]; then > + . $i > +fi > + done > + unset i > +fi i like the idea, but please use at least: command . $i or ( . $i ) otherwise a syntax error / file error will prevent a login. also use the unof

Re: [OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

2015-06-10 Thread Bastian Bittorf
* thomas.lan...@lantiq.com [10.06.2015 13:59]: > I think this will not work, as /etc/profile (and these additional files) is > expected to be executed in the current shell context. > Otherwise adding shell variables or extending $PATH will not work. So you > cannot execute them in a subshell. o

Re: [OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

2015-06-10 Thread Bastian Bittorf
* Matthias Schiffer [10.06.2015 14:26]: > Why should errors in these files cause login issues? This is shell and > there's no -e, problematic lines will print an error and be skipped. i have seen a lot of strange things. think about flash readerrors or stack corruption or $youridea 8-) i think w

Re: [OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

2015-06-10 Thread Bastian Bittorf
* Hendrik Lüth [10.06.2015 20:38]: > Weather a script needs to get called in failsafe mode or not depends > on the script, so I'd like to not skip it. no, failsafe is failsafe is failsafe and should do mostly nothing. bye, bastian ___ openwrt-devel mai

Re: [OpenWrt-Devel] [PATCH] base-files: add /etc/profile.d support

2015-06-10 Thread Bastian Bittorf
* Yousong Zhou [10.06.2015 20:38]: > > distributions. This allows packages to install their own scripts into > > /etc/profile.d/. > > IMO, OpenWrt is not like most of other Linux distributions. So what are > those other packages that need this and the current specific use cases? I agree, that O

Re: [OpenWrt-Devel] can netifd automatically restart a service?

2015-06-11 Thread Bastian Bittorf
* Nikos Mavrogiannopoulos [11.06.2015 09:35]: > individual service). However, a way to reduce the impact would be for > netifd to restart transmission if crashed. Can that be done already, or > inittab is the only option? you can convert the initscript for using 'procd'. take as an example the fi

Re: [OpenWrt-Devel] [PATCHv2] ppp : Unnumbered support

2015-06-12 Thread Bastian Bittorf
* Hans Dedecker [12.06.2015 12:15]: > + if [ -n "$res_mask" -a "$mask" != 32 ]; then > + [ "$mask" -gt "$res_mask" ] || [ "$res_mask" = 32 ] && { if you send a v3, please use here: [ "$mask" -gt "$res_mask" -o "$res_mask" = 32 ] && { ... } > + [ -n "$l

Re: [OpenWrt-Devel] [PATCH v2] base-files: add /etc/profile.d support

2015-06-15 Thread Bastian Bittorf
* Hendrik [15.06.2015 09:02]: > i just wanted to ask for your oppinions on the second verison of my > patch. why didnt you pay attention for all the suggestions? bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.o

Re: [OpenWrt-Devel] [PATCH] [generic] ramips: adding support for OYE-0001 Wireless Router

2015-06-16 Thread Bastian Bittorf
* younfan33 [17.06.2015 08:52]: > --- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac(revision > 0) > +++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac(revision > 0) > @@ -0,0 +1,113 @@ > +# > +# Copyright (C) 2011 OpenWrt.org > +# > + > +preinit_set_mac_

Re: [OpenWrt-Devel] opkg.conf as preserved config file in sysupgrade is creating problems (especially after package signing)

2015-06-18 Thread Bastian Bittorf
* Hannu Nyman [18.06.2015 11:06]: > Other possibility could be divide opkg.conf into two: a > build-specific default download repo list (to be overwritten in > sysupgrade) and a user-specific config file with config options and > possible additional download locations (to be preserved). IMHO this

Re: [OpenWrt-Devel] How to keep disabled services disabled after sysupgrade

2015-06-18 Thread Bastian Bittorf
* Stefan Tomanek [18.06.2015 15:39]: > Can anyone supply any different ideas or provide some feedback? maybe: disabled services are stored during sysupgrade in e.g. /lib/upgrade/keep.d/services_disabled and this file will be read line by line during firstboot/uci-defaults (and services diabled a

Re: [OpenWrt-Devel] Presentation on Linux Containers (LXC)

2015-06-26 Thread Bastian Bittorf
* Javier Domingo Cansino [26.06.2015 17:22]: > Thanks for sharing!! short comment from myself (for the next hangout). everyone who is speaking should do a short "introduce myself" with background. bye, bastian ___ openwrt-devel mailing list openwrt-dev

Re: [OpenWrt-Devel] Fwd: iwinfo lua scanlist issue

2015-06-29 Thread Bastian Bittorf
* Peter Uithoven [29.06.2015 13:20]: > We do a little bit of our own wifi config. We try to find (using scanlist) > known wifi networks and connect to them, when non appropriate are found we > create a accesspoint. > In the future, when connecting to a known networks fails it should also > become

Re: [OpenWrt-Devel] Fwd: iwinfo lua scanlist issue

2015-06-29 Thread Bastian Bittorf
* Peter Uithoven [29.06.2015 15:27]: > > > If I understand the OpenWRT wiki hotplug is replaced by procd? > > > > no. netifd will start hotplug if an interface comes up. > > > > But, why does the wiki say this then? Is that info incorrect? Is netifd an > exception? > you are right - procd will c

Re: [OpenWrt-Devel] [PATCH] This patch fixes a line that appears to clear beacon_int variable, prevent setting beacon interval for adhoc.

2015-06-30 Thread Bastian Bittorf
* ben [30.06.2015 06:48]: > Signed-off-by: ben > --- > package/network/services/hostapd/files/netifd.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/network/services/hostapd/files/netifd.sh > b/package/network/services/hostapd/files/netifd.sh > index 23d2e7e

[OpenWrt-Devel] iproute2/tc does not apply or show filters

2015-06-30 Thread Bastian Bittorf
While working with 'tc' we found something strange: Our filters apply without errors, but we cannot see them with 'tc filter show dev $dev'. Also when running 'tc monitor' in another terminal, we only see 'qdisc' related things, but not filters. It seems that it happens from r37xxx till now/trunk

[OpenWrt-Devel] Dualradio 2.4/5GHz ath9k-Hardware which is deliverable?

2015-07-01 Thread Bastian Bittorf
In our community we are struggling now, what we can buy. TP-Link 4900 and 4300 are EOL now in Germany. What else is there? - 8mb+ flash - 450 mbit ath9k 2.4 GHz - 450 mbit ath9k 5 GHz - 128mb ram - 5 gigabit ports - OpenWrt 8-) bye, bastian ___ openwrt-

Re: [OpenWrt-Devel] Dualradio 2.4/5GHz ath9k-Hardware which is deliverable?

2015-07-01 Thread Bastian Bittorf
* Jonathan Bennett [01.07.2015 20:33]: > I have had great success with the tp-link Archer c7. It fits the bid > nicely, if it is available. no, it does not fit. it has only an ath10k-radio for 5ghz. bye, bastian ___ openwrt-devel mailing list openwrt-d

Re: [OpenWrt-Devel] Dualradio 2.4/5GHz ath9k-Hardware which is deliverable?

2015-07-01 Thread Bastian Bittorf
* Emmanuel Deloget [01.07.2015 21:50]: > You should try Aliexpress - it seems they still have some 4900 (be aware > that prices might be a bit weird). my question is not about "tricks" to get these devices. it's about what can be found everywhere. is 2.4+5ghz ath9k really outdated? bye, bastian

Re: [OpenWrt-Devel] Dualradio 2.4/5GHz ath9k-Hardware which is deliverable?

2015-07-02 Thread Bastian Bittorf
* Etienne Champetier [02.07.2015 10:51]: > > is 2.4+5ghz ath9k really outdated? bye, bastian > > maybe you can explain why only ath9k (mesh? binary blob?) We like on 4 things: - ratecontrol in userspace (minstrel) - powercontrol in userspace (not upstream yet) - IBSS/adhoc together with AP-mode

Re: [OpenWrt-Devel] [Olsr-dev] [ANNOUNCE - v1] olsrd v0.9.0.2 released

2015-07-02 Thread Bastian Bittorf
* Ferry Huberts [30.06.2015 18:38]: > We did a bug-fix release of olsrd v1. yesterday i updated the OpenWrt routing-packages for trunk|14.07|15.05 - thank you all! BTW: no issues so far when using 'musl' libc. as always: please compile, test and report 8-) bye, bastian _

[OpenWrt-Devel] error 421 while creating new ticket

2015-07-02 Thread Bastian Bittorf
just for the admin: Warning: The ticket has been created, but an error occurred while sending notifications: (421, 'Unexpected failure, please try later') while submitting this new ticket: https://dev.openwrt.org/ticket/20029 bye, bastian ___ openwrt-de

Re: [OpenWrt-Devel] watchping

2015-07-03 Thread Bastian Bittorf
* Bruno Randolf [03.07.2015 13:15]: > I am writing here to ask wether someone has done this already, or if > there are any other concerns or opinions. Please let me know! I think nearly every wireless community has something like this. A good approach is IMHO the sven-ola "check different routing

Re: [OpenWrt-Devel] watchping

2015-07-03 Thread Bastian Bittorf
* Bruno Randolf [03.07.2015 13:15]: > I am writing here to ask wether someone has done this already, or if > there are any other concerns or opinions. Please let me know! IMHO useful would be to have a hotplug-events during every change of default-route (for every interface). (e.g. new|change|del

Re: [OpenWrt-Devel] RFC: Preserving smbpasswd & dnsmasq.time across sysupgrade

2015-07-27 Thread Bastian Bittorf
* Kevin Darbyshire-Bryant [26.07.2015 16:35]: > The next question is how? It looks like a few other packages create a > subdir in 'keep.d' with a file containing a list of files that should be > preserved by default. I would anticipate creating 'samba' & 'dnsmasq' > subdirs though the package Ma

Re: [OpenWrt-Devel] [PATCH] bugfix: FORCE=1 doesn't work to override prereq checks

2015-07-27 Thread Bastian Bittorf
* Lawrence D'Anna [26.07.2015 16:39]: > > What prereq can be forced that makes force even a worthwhile option? If > > it works anyway, why not just drop the prereq check? If it still won't > > work, what's the point in allowing a force? > > In my case it was because the prereq checks didn’t thi

[OpenWrt-Devel] RFC: adding 'traceroute6' to busybox / base

2015-08-01 Thread Bastian Bittorf
i build it for ar71xx, and these are the numbers [bytes]: before: 359736 build_dir/target-mips_34kc_musl-1.1.10/busybox-1.23.2/busybox 208071 bin/ar71xx/packages/base/busybox_1.23.2-1_ar71xx.ipk after: 359884 build_dir/target-mips_34kc_musl-1.1.10/busybox-1.23.2/busybox 209115 bin/ar71xx/packages

Re: [OpenWrt-Devel] [PATCH] base-files: rework reset button script to indicate factory reset

2015-08-12 Thread Bastian Bittorf
* Rafał Miłecki [11.08.2015 21:01]: is there a special reason, that you are using exec /sbin/poweroff instead of just /sbin/poweroff bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailma

Re: [OpenWrt-Devel] [PATCH] base-files: rework reset button script to indicate factory reset

2015-08-12 Thread Bastian Bittorf
* Rafał Miłecki [12.08.2015 15:10]: > I think you're commenting on a wrong patch. sorry, yes - the comment applies to: a643de25/r40909 and i just stumpled upon this while reading the affected sources of your patch. @stefan: why is this 'exec' needed? bye, bastian ___

Re: [OpenWrt-Devel] [PATCH v2] busybox: lock: implement -n "Fail rather than wait"

2015-08-13 Thread Bastian Bittorf
* Alexander Couzens [07.08.2015 20:48]: > lock -n is similiar to flock -n. If the lock was already taken, > fail with exit code = 1 and write error message to stderr. see: http://mywiki.wooledge.org/BashFAQ/045 internally we are using 'mkdir' which is called via a 'lock()' function: if mkdir /tm

Re: [OpenWrt-Devel] [PATCH] busybox: lock: implement -n "Fail rather than wait"

2015-08-13 Thread Bastian Bittorf
* Alexander Couzens [06.08.2015 19:05]: > lock -n is similiar to flock -n. If the lock was already taken, > fail with exit code = 1 and write error message to stderr. sorry, forget to ask: is this "more" atomic than 'mkdir mypath || return'? bye, bastian _

Re: [OpenWrt-Devel] Separate Default SSID for 2.4GHz and 5GHz

2015-08-13 Thread Bastian Bittorf
* Sami Olmari [07.08.2015 15:48]: > In openwrt you are free to configure each and every radio as own unit, so > use whatever SSID you see fit for each radio. This is default basic OpenWrt > stuff :) seems that Afkar has 1 radio which must be switched between 2.4 and 5 GHz, Afkar? bye, bastian _

[OpenWrt-Devel] [PATCH v4] base-files: add /etc/profile.d support

2015-09-04 Thread Bastian Bittorf
builder can simply add there files. v1 initial work of Hendrik Lüth v2 changes regarding RFC (e.g. thomas.lan...@lantiq.com) v3 changes regarding RFC (e.g. mschif...@universe-factory.net) v4 keep it simple and mimic OpenWrt style Signed-off-by: Bastian Bittorf --- package/base-files/files/etc

Re: [OpenWrt-Devel] [PATCH v4] base-files: add /etc/profile.d support

2015-09-04 Thread Bastian Bittorf
* karlp [04.09.2015 12:30]: > > + for FILE in /etc/profile.d/*.sh; do > > + [ -e "$FILE" ] && . "$FILE" > > Why the -e? You only got existing files in the glob above right? If no, when the directory is empty, you get FILE='/etc/profile.d/*.sh' > Maybe "local" could be used to avoid

Re: [OpenWrt-Devel] [PATCH v4] base-files: add /etc/profile.d support

2015-09-04 Thread Bastian Bittorf
* edgar.sol...@web.de [04.09.2015 12:30]: > note from a bystander. this looks wrong - path/file names containing spaces > will be delimited by for. probably better use for the sent patch this works: root@box:~ touch "A 1" root@box:~ touch "A 2" root@box:~ for FILE in A*; do ls -l "$FILE"; done

Re: [OpenWrt-Devel] [PATCH v4] base-files: add /etc/profile.d support

2015-09-04 Thread Bastian Bittorf
* karlp [04.09.2015 12:30]: > Maybe "local" could be used to avoid the unset FILE line, but at least on 2nd tought i must object, that if we use a function, our environment is polluted with a function (how to unload it?), so it's easier to just unset a variable. bye, bastian

Re: [OpenWrt-Devel] [PATCH v4] base-files: add /etc/profile.d support

2015-09-04 Thread Bastian Bittorf
* Karl Palsson [04.09.2015 15:02]: > So let's -d test the directory instead of -e testing every file just in > case the directory didn't exist? even if the directory exists but is empty, the globbing fails. but i get your point. what about: [ -n "$( ls -1 $dir )" ] && { for FILE in $dir/*; do

Re: [OpenWrt-Devel] [PATCH v4] base-files: add /etc/profile.d support

2015-09-04 Thread Bastian Bittorf
* Luiz Angelo Daros de Luca [04.09.2015 17:48]: > Normally I like to use find instead of glob > With minpath, maxpath, name and etc, you get safe empty result when dir is > empty. IMHO this is overkill here. You are correct, but... bye, bastian ___ ope

Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-06 Thread Bastian Bittorf
* Adrian Kotelba [06.09.2015 20:05]: > Serving precompressed content with uhttpd. please write more about the usecase. it looks useless?! bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mail

Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-07 Thread Bastian Bittorf
* Adrian Kotelba [07.09.2015 11:36]: > Well, it could be useful for low-end devices with small storage > capacity and slow networks, see https://dev.openwrt.org/ticket/14333. > The static content, mostly text-based HTML, Java, and css files, could > be stored as gzip or zopfli precompressed files.

Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-07 Thread Bastian Bittorf
* Adrian Kotelba [07.09.2015 15:18]: > > ok, as far as i understand the patch, if somebody > > tries to http_get file 'xy.html' and the webserver > > finds 'xy.html.gz' it serves this file, right? > > Right. More preciselly, if somebody tries to http_get file 'xy.html' > and the webserver does fi

Re: [OpenWrt-Devel] Fwd: [PATCH] uhttpd: serve precompressed files

2015-09-07 Thread Bastian Bittorf
* Adrian Kotelba [07.09.2015 18:57]: > Thanks for hints. So, in other words, you propose to compress the > files on the fly, right? > I am afraid that low-end devices may not have enough cpu power to do that. this is really fast. gzip compresses at ~1megabyte/sec on a typical router. this means 1

[OpenWrt-Devel] thanks for r46829 / replace ifconfig-usage with ip

2015-09-11 Thread Bastian Bittorf
Thanks for fully switching to 'ip' and abandon 'ifconfig/route'. Back in 2008 with r11157 i started the first discussion with a patch and the core team was against it. i tried again in 2009, but the additional 12k was just to much [1] for adding. Several discussions in IRC always leaded to 'too mu

Re: [OpenWrt-Devel] thanks for r46829 / replace ifconfig-usage with ip

2015-09-11 Thread Bastian Bittorf
* Steven Barth [11.09.2015 11:44]: > Well it's not yet abandoned we still have to migrate a lot of > stuff under target/ and in the feeds. ifconfig and route won't > go away before that happens. thanks for pointing at it: user@build:~/openwrt$ git grep 'ifconfig ' | wc -l 57 i see that as a dire

Re: [OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps

2015-09-15 Thread Bastian Bittorf
* John kerry [15.09.2015 08:52]: > I have to write some condition in > /etc/hotplug.d/button/50-wps/ file > > I have to configure cat /etc/hotplug.d/button/00-wps file for following > condition: > if [ "$BUTTON" = "BTN_2" ] && [ "$ACTION" = "pressed" ]; then > > I have to check eth0.1 if link is

Re: [OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps

2015-09-15 Thread Bastian Bittorf
* John kerry [15.09.2015 13:44]: > Hi, > > I have added following condition but its not working: > > MYDEV='eth0' > > if [ "$ACTION" = "pressed" -a "$BUTTON" = "BUT_2" ] && { remove the 'if' > devstatus "$MYDEV" | grep '"up": true' && { > echo "255" > > /sys/devices/platform/leds-gp

Re: [OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps

2015-09-15 Thread Bastian Bittorf
* John kerry [16.09.2015 08:10]: > Hi, > > I have changed the script as below: > > MYDEV='eth0.2' > > ["$ACTION" = "pressed" -a "$BUTTON" = "BUT_2" -a "INTERFACE" = 'wan'] && ^^^ a space here, so [ "$ACTION" - the same at the end: 'wan' ] use "$INTERFACE" with the '$' please learn shell-sc

Re: [OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps

2015-09-16 Thread Bastian Bittorf
* John kerry [16.09.2015 11:32]: > even i checked on http://www.shellcheck.net/ , its not giving any feedback, > it seems correct but still its not working. add 1 line on top of your script for debugging: set | logger and check with 'logread -f' the output when you press the button. bye, basti

Re: [OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps

2015-09-16 Thread Bastian Bittorf
* John kerry [16.09.2015 12:18]: > I am getting below log: ok, i see: INTERFACE is not set, so you have to remove the check for this var and hardcode it. please stop sending mails like this, debug on your own with a local friend. bye, bastian ___ open

Re: [OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP

2016-01-14 Thread Bastian Bittorf
* amine ahd [14.01.2016 10:29]: thank you, patch applies... > start_service() { > - local server enabled enable_server peer > + local server enabled enable_server peer ntpservers > + local use_dhcp="$(uci -q get system.ntp.use_dhcp)" > > validate_ntp_section ntp || { >

Re: [OpenWrt-Devel] [PATCH] brcm47xx: Mark broken; no working images

2016-01-14 Thread Bastian Bittorf
* Daniel Dickinson [14.01.2016 17:35]: > If on trunk, what compile options do use to make the images build > successfully? I get failed compiles with warning that the image is > too big on any brcm47xx target I tried, so unless wl-500gp is bigger > than most of them, I'm thinking you're either do

Re: [OpenWrt-Devel] [PATCH 1/1] use NTP server received via DHCP

2016-01-15 Thread Bastian Bittorf
* Amine Aouled Hamed [15.01.2016 10:03]: > > please make var 'iface' local and while you are there, move > > all the 'local' declaration to the head of the function. > > Wouldn't be better if the local vars inside of the if and for statements > stay inside? maybe thats personal preference, i lik

Re: [OpenWrt-Devel] Dissociate STA based on SNR

2016-01-18 Thread Bastian Bittorf
* Nishant Sharma [18.01.2016 15:40]: > I was wondering if there is a way to dissociate STAs who say go below > a minimum threshold SNR or signal level of say -65dBm in a multi-AP > scenario? we also faced this, while doing roaming. i workaround is to have something like: #!/bin/sh iw event | wh

Re: [OpenWrt-Devel] Dissociate STA based on SNR

2016-01-18 Thread Bastian Bittorf
* Nishant Sharma [19.01.2016 07:46]: > >ubus call hostapd.$dev del_client '{ "addr" : "$mac", "reason" : > >"assoc toomany", "ban_time" : 1 }' > Thanks for the pointers. It works for me. > > What exactly is ban_time unit? I presume it's millisecond. yes, milliseconds. > Where can I find mor

Re: [OpenWrt-Devel] Dissociate STA based on SNR

2016-01-18 Thread Bastian Bittorf
* Weedy [19.01.2016 07:46]: > > I was wondering if there is a way to dissociate STAs who say go below a > > minimum threshold SNR or signal level of say -65dBm in a multi-AP scenario? > > > option disassoc_low_ack1 > Adjust this code to trigger higher? yes, this also helps but is NOT enough.

Re: [OpenWrt-Devel] [PATCH] use NTP server received via DHCP

2016-01-19 Thread Bastian Bittorf
* amine ahd [19.01.2016 10:12]: > start_service() { > - local server enabled enable_server peer > - > + local server enabled enable_server peer ntpservers iface status > ntpserver dump > + local dhcp_ifaces="$(uci -q get system.ntp.dhcp_ifaces)" > + please remove whitespaces in

Re: [OpenWrt-Devel] [PATCH] package/config/netifd: Replace ifconfig/route with ip command

2016-01-19 Thread Bastian Bittorf
* open...@daniel.thecshore.com [20.01.2016 07:21]: > @@ -5,30 +5,34 @@ set_classless_routes() { > local max=128 > local type thanks for that, i have it also on my todo-list. please remove also the 'local type' here. > done > } > > setup_interface() { > - echo "udhcpc:

Re: [OpenWrt-Devel] [PATCH] use NTP server received via DHCP

2016-01-20 Thread Bastian Bittorf
* amine ahd [20.01.2016 10:09]: thank you! > The current state of NTP is to load the list of NTP servers > from the static file /etc/config/system. > This patch allows ntpd to get NTP servers from DHCP. like john wrote already: if you edit the first line of the commit-message, please write: bu

Re: [OpenWrt-Devel] [PATCH v2] base-files: For sysfixtime use hwclock if RTC available

2016-01-20 Thread Bastian Bittorf
* Petr Štetiar [20.01.2016 10:14]: thank you! > START=00 > +STOP=90 > + > +rtc_dev=/dev/rtc0 > +hwclock=/sbin/hwclock please use varname in UPPERCASE if global (just a style issue) the rest looks good to me. bye, bastian ___ openwrt-devel mailing li

Re: [OpenWrt-Devel] [PATCH] package/config/netifd: Replace ifconfig/route with ip command

2016-01-20 Thread Bastian Bittorf
* Daniel Dickinson [20.01.2016 10:18]: > >>+ local prefix="$( > >>+ eval "$(ipcalc.sh 0.0.0.0 ${subnet:-255.255.255.0})" > >>+ echo -n $PREFIX > > > >dont use '-n' > > Why not? It prevents echo from emitting an unwanted newline. it's not POSIX and really unneeded here (it

Re: [OpenWrt-Devel] [PATCH] package/config/netifd: Replace ifconfig/route with ip command

2016-01-20 Thread Bastian Bittorf
* Daniel Dickinson [20.01.2016 10:18]: > >>+ local prefix="$( > >>+ eval "$(ipcalc.sh 0.0.0.0 ${subnet:-255.255.255.0})" > >>+ echo -n $PREFIX > > > >dont use '-n' > > Why not? It prevents echo from emitting an unwanted newline. by the way: is somebody fluent enough in AWK

Re: [OpenWrt-Devel] [PATCH] package/config/netifd: Replace ifconfig/route with ip command

2016-01-20 Thread Bastian Bittorf
* open...@daniel.thecshore.com [20.01.2016 14:01]: > +# From Bastian Bittorf > +# Included in this file to avoid dependencies > +mask2cidr() please drop the comment, thank you. > +{ > + local x=${1##*255.} > + local allones=$(( (${#1} - ${#x}) * 2 )) > + local

Re: [OpenWrt-Devel] [PATCH 1/3] package/network/utils/iproute: ip-full/busybox provides ip

2016-01-20 Thread Bastian Bittorf
* open...@daniel.thecshore.com [21.01.2016 07:06]: > From: Daniel Dickinson > > Allow to use dependencies on 'ip' command without forcing a > particular version by having ip-full and busybox (if ip > applet enabled), as well as renamed ip package > (to ip-tiny) all provides the ip virtual packa

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-21 Thread Bastian Bittorf
* Petr Štetiar [21.01.2016 12:22]: > boot() { > + [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK" ] && $HWCLOCK -s -f $RTC_DEV && > exit 0 thank you! can you please do in this line a: && return and introduce a helper (maybe overengineered 8-) deps_ok() { [ -e "$RTC_DEV" ] && [ -e "$HWCLOCK"

Re: [OpenWrt-Devel] [PATCH v3] base-files: For sysfixtime use hwclock if RTC available

2016-01-21 Thread Bastian Bittorf
* John Crispin [21.01.2016 13:30]: > hang on there, this looks like bastel basti scriptowahn 8-) but the 'exit VS. return' is valid... bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman

Re: [OpenWrt-Devel] [PATCH 3/3] package/network/config/qos-scripts: Drop ifconfig and use ip command instead

2016-01-21 Thread Bastian Bittorf
* Daniel Dickinson [22.01.2016 07:55]: > >>- export dev_${dir}="ifconfig $dev up txqueuelen 5 >&- 2>&- > >>+ export dev_${dir}="ip link set $dev up txqueuelen 5 >&- 2>&- > >This doesn't actually work... > > Is it unsupported by busybox ip applet? It is correct on fedora, but

Re: [OpenWrt-Devel] netifd question

2016-01-21 Thread Bastian Bittorf
* Daniel Dickinson [22.01.2016 07:55]: > For a netifd protocol is there way to tell netifd to *not* > automatically try to restart the connection? we have samething similar for PPPoE. option 'authfail' '1' # since r33291 check package/network/services/ppp/files/ppp.sh bye, bastian _

Re: [OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-21 Thread Bastian Bittorf
* John Clark [22.01.2016 07:55]: > Is it intentional that wget is not available by default in the > current trunk? I noticed this because /sbin/sysupgrade is failing in > the current build of designated driver due to this. I thought I > would point it out. yes, is was dropped with r48386 + 4837

[OpenWrt-Devel] [PATCH] base-files: fix sysupgrade 'wget' handling

2016-01-22 Thread Bastian Bittorf
with r48379 and r48386 the path of wget changed. respect that and adjust the dirname. this fixes #21680 Signed-off-by: Bastian Bittorf --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade

Re: [OpenWrt-Devel] DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-22 Thread Bastian Bittorf
* John Clark [22.01.2016 07:55]: > Is it intentional that wget is not available by default in the i just send a patch. thanks for spotting this. bye, bastian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-b

Re: [OpenWrt-Devel] uclient-fetch & SSL WAS:Re: DD: CONFIG_BUSYBOX_DEFAULT_WGET is not set

2016-01-23 Thread Bastian Bittorf
* Martin Tippmann [23.01.2016 14:23]: > The daemon should work fine, at least curl and wget on Ubuntu handle it fine. i cannot reproduce this here: root@box:~ wget -qO - http://127.0.0.1:2006|wc -l 709 root@box:~ command -V wget wget is a tracked alias for /bin/wget (so it's working fine) bye,

  1   2   3   4   5   6   7   8   >