Re: invalid options with date

2016-09-22 Thread ITwrx.org
On 09/22/2016 06:14 PM, Jeremy Chadwick wrote: > The reason date -h etc. doesn't work is because, as described, your > Busybox was built with support for such disabled. You will need to talk > to whoever maintains your Busybox package/install, or if that's you, > then you need to consider

Re: possible bug in 'sum' command, with a demo

2016-09-22 Thread Kang-Che Sung
> I can't reproduce the same result in the latest BusyBox version from git. > Perhaps this has been fixed already? Oops. My mistake. Used the wrong input. Here's the corrected one: $ printf '145146\n\n'| ./busybox cksum 1560277601 8 $ printf '145146\n\n'| cksum 1560277601 8 $

Re: possible bug in 'sum' command, with a demo

2016-09-22 Thread Kang-Che Sung
On Thu, Sep 22, 2016 at 11:57 PM, Anne Salemme wrote: > > I am using BusyBox version v1.22.1 inside MobaXterm, and came across what > looks like a bug in the ‘sum’ command…maybe not a bug, but definitely not > expected…here is a little demo for you…thanks, I love

Re: invalid options with date

2016-09-22 Thread Jeremy Chadwick
The reason date -h etc. doesn't work is because, as described, your Busybox was built with support for such disabled. You will need to talk to whoever maintains your Busybox package/install, or if that's you, then you need to consider tweaking the config further for such. I have no problem with

Re: invalid options with date

2016-09-22 Thread ITwrx.org
On 09/22/2016 05:08 PM, Jeremy Chadwick wrote: > Be sure to note that this is for 1.25.0; 1.24.2 may be different. > I got this by using "date -h", but whether or not usage syntax is > enabled depends on how your Busybox was built/configured. > > I believe the TIME format section should answer

Re: invalid options with date

2016-09-22 Thread Jeremy Chadwick
Be sure to note that this is for 1.25.0; 1.24.2 may be different. I got this by using "date -h", but whether or not usage syntax is enabled depends on how your Busybox was built/configured. I believe the TIME format section should answer your question (you need to include hours and minutes, so

invalid options with date

2016-09-22 Thread ITwrx.org
hi, i'm trying to run my bash script (that works on my linux boxes) using busybox app (ru.meefik.busybox, ver. 1.24.2) on android 5.1.1(cyanogenmod 12) and i'm having trouble with date not supporting options. first it was "-d" that was causing issues. now busybox complains: "date: invalid option

Re: additional ifupdown problems

2016-09-22 Thread David Henderson
Here's some more useful info... So if there are contents in the /etc/network/interfaces file (at least static IP info), everything works as designed (ifup/down and /var/run/ifstate) via the 'ifup -a' during bootup. Although if eth0 is ifdown'ed and has a virtual config eth0:1, when you down eth0,

Re: additional ifupdown problems

2016-09-22 Thread Martin Townsend
Hi Dave, I think you will need my recent patch that I submitted to get ifdown working, check the archived mailing list for about a week ago. I was getting the same problem with an aliased/virtual IP address. Very strange why this works though, rules out sudoer problems. I'm afraid this one has

Re: additional ifupdown problems

2016-09-22 Thread David Henderson
So to add more confusion to the mix, I've been able to successfully add 'virtual' adapter (e.g. eth0:1) configuration with everything working correctly - both 'ifup' and the modification of the /var/run/ifstate file! Also, the test script in if-up.d ran flawlessly. I do still get an error on

Re: additional ifupdown problems

2016-09-22 Thread David Henderson
Hey Martin, it does not appear that a /proc/config.gz is present. I guess that option wasn't added in the kernel config itself. What was the option to check btw? I also checked the full dmesg output, but it doesn't appear that anything was in that log. Let me ask this question. I have to run

Re: possible bug in 'sum' command, with a demo

2016-09-22 Thread Guillermo Rodriguez Garcia
The values returned by sum seem to be correct for the default SysV algorithm. The coreutils version of sum yields the same values. Guillermo 2016-09-22 17:57 GMT+02:00 Anne Salemme : > Hello, > > I am using BusyBox version v1.22.1 inside MobaXterm, and came across >

possible bug in 'sum' command, with a demo

2016-09-22 Thread Anne Salemme
Hello, I am using BusyBox version v1.22.1 inside MobaXterm, and came across what looks like a bug in the ‘sum’ command…maybe not a bug, but definitely not expected…here is a little demo for you…thanks, I love BusyBox! Demo shows that given two files with different contents, ‘sum’ gives them

Re: additional ifupdown problems

2016-09-22 Thread Martin Townsend
Don't suppose there's a /proc/config.gz file on your board? this would be the kernel configuration but the kernel would have to be built with this feature enabled. zcat /proc/config.gz would give you the configuration. Can't remember if I've already asked but is there anything useful in dmesg?

Re: additional ifupdown problems

2016-09-22 Thread David Henderson
Thanks for your continued efforts Martin! I can try the full blown iproute2 later today and let you know. Not sure about the kernel config as I'm working with a fork of TC linux - they maintain that portion. And I don't think it's a firewall issue because the routing does get setup during boot,

Re: ifupdown scripts

2016-09-22 Thread David Henderson
Following up with this too. Dave On 9/20/16, David Henderson wrote: > Does BB require certain permissions or ownership of the > scripts/directories for this to get called? > > Dave > > > On 9/20/16, David Henderson wrote: >> Hey

Re: dhcp with /etc/network/interfaces

2016-09-22 Thread David Henderson
Just following up with this... Dave On 9/20/16, David Henderson wrote: > Thanks for your help with this too Denys. Answers are inline... > > > On 9/20/16, Denys Vlasenko wrote: >> On Tue, Sep 20, 2016 at 5:31 PM, David Henderson >>

Re: ifupdown problem

2016-09-22 Thread David Henderson
On 9/22/16, Denys Vlasenko wrote: > On Wed, Sep 21, 2016 at 2:57 PM, David Henderson > wrote: >> On 9/20/16, Denys Vlasenko wrote: >>> On Tue, Sep 20, 2016 at 8:33 PM, David Henderson >>>

Re: [PATCH] AUTHORS: Add myself to AUTHORS

2016-09-22 Thread Denys Vlasenko
Applied, thanks! On Tue, Sep 20, 2016 at 11:31 PM, Linus Walleij wrote: > Instead of complaining that my authorship of the rewrite of > the mdev to use /sys/dev is totally gone from the git history > I bravely take credit by adding myself to the AUTHORS file > instead,

Re: ifupdown problem

2016-09-22 Thread Denys Vlasenko
On Wed, Sep 21, 2016 at 2:57 PM, David Henderson wrote: > On 9/20/16, Denys Vlasenko wrote: >> On Tue, Sep 20, 2016 at 8:33 PM, David Henderson >> wrote: General idea is described here: