[oe] [oe-issues] [Bug 1583] hostap-fw-load doesn't work with bash

Koen Kooi koen at dominion.kabel.utwente.nl
Tue Nov 28 18:35:50 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[bugtracker is having troubles with the rainy weather]

bugzilla-daemon at tinman.treke.net schreef:
> http://bugs.openembedded.org/show_bug.cgi?id=1583
> 
> 
> 
> 
> 
> ------- Comment #1 from openembedded at hrw.one.pl  2006-11-27 12:03 -------
> Can you try with bash 3.2 which I pushed into .dev?
> 
> Similar script works on my desktop with bash 3.1.

It doesn't:

root at h2200:~# ifup wlan0
/etc/network/if-pre-up.d/hostap-fw-load: line 4: [: too many arguments
[snip]
root at h2200:~# sh --version
GNU bash, version 3.2.5(1)-release (arm-angstrom-linux-gnueabi)
Copyright (C) 2005 Free Software Foundation, Inc.
root at h2200:~#

But changing line 4 to:

if [ -n "`cat /proc/net/wireless|grep $IFACE`" ]; then

silences the error message (extra quotes around ``)

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFbIGGMkyGM64RGpERAoKnAJ9a/PHZhdWlNorHfP0gSNgYq+pPzwCfZ/G+
RXCS/IsvRIfWqJUm5lFzuv4=
=2Vj4
-----END PGP SIGNATURE-----




More information about the Openembedded-devel mailing list