Skip to contentSkip to conversation

hostap-fw-load doesn't work with bash

oe-issues Koen Kooi 1 participant 1 message Nov 28, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Koen Kooi

author
#1 lore raw

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

[bugtracker is having troubles with the rainy weather]

[email protected] schreef:

Quoted 10 lines

http://bugs.openembedded.org/show_bug.cgi?id=1583

------- Comment #1 from [email protected] 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@h2200:~# ifup wlan0
/etc/network/if-pre-up.d/hostap-fw-load: line 4: [: too many arguments
[snip]
root@h2200:~# sh --version
GNU bash, version 3.2.5(1)-release (arm-angstrom-linux-gnueabi)
Copyright (C) 2005 Free Software Foundation, Inc.
root@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-----