2010-08-31 10:18:36     hush problem after busybox update

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-08-31 10:18:36     hush problem after busybox update

Matthias Laur (GERMANY)

Message: 92969   




I update busybox to the trunk verion because of the ifplugd tool.


Now I have the following problem:


msh is not longer an option. So I use hush as shell. If I try the following command:


--> IP=`cat /home/www/cgi-bin/sd/FBI6110.ini |grep ipaddr|awk -F ":" '{print $2}'`


I get this output:


--> FBI6110.ini: applet not found

--> awk: cmd. line:1: Unexpected token



It worked in the older busybox with msh without problems. Thanks for any help!




2010-08-31 10:34:56     Re: hush problem after busybox update

Mike Frysinger (UNITED STATES)

Message: 92971   


works for me:

BusyBox v1.16.2 (2010-08-29 09:15:22 EDT) hush - the humble shell


root:/> mkdir -p /home/www/cgi-bin/sd/

root:/> echo 'a b c ipaddr: d e f' > /home/www/cgi-bin/sd/FBI6110.ini

root:/> cat /home/www/cgi-bin/sd/FBI6110.ini |grep ipaddr|awk -F ":" '{print $2}'

root:/> IP=`cat /home/www/cgi-bin/sd/FBI6110.ini |grep ipaddr|awk -F ":" '{print $2}'`

root:/> echo $IP


i would look at the default busybox options enabled for ADI boards and make sure you've enabled the same