-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eric Spakman wrote:
> Hello Jim,
>
> Thanks for looking into this. I think it's a busybox grep bug/feature and
> I will search for a cleaner solution, but I need your help with this (I
> don't have the hostap hardware ;)
>
> Eric
>
>> Looks like the trouble traces to grep(ing) past a certain byte offset in
>> /proc/net/hostap/$1/debug.
Interesting...so this line doesn't work, right?
if grep -q no_pri=1 /proc/net/hostap/$1/debug; then
Possible substitutes...
Remove -q flag:
if grep no_pri=1 /proc/net/hostap/$1/debug >/dev/null ; then
Have grep read file via pipe, instead of directly:
if cat /proc/net/hostap/$1/debug | grep -q no_pri=1 ; then
Use sed:
if [ -n "`sed -n '/no_pri=1/{p;q}' /proc/net/hostap/$1/debug`" ]; then
...and probably several others if none of these work (I can't test with
the actual /proc/ file, since I don't have the appropriate HW).
- --
Charles Steinkuehler
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEV24pLywbqEHdNFwRAs6xAJ9XS5JfS0189f/a/YMiaIF/wJXs+QCfXWXF
8Cm87T0vmatnUAFQiitGnW8=
=xHUU
-----END PGP SIGNATURE-----
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/