Hi, Denis! OK sorry, here it goes.
Setup.sh reads BlackBox.conf varsets, and build a set of vars with cfg_ prefix then it prints it to console (just for cheap debugging as well as echo lines) output contain these lines.
I guess Paul Fox is right and "awk" has to be blamed so... Thanks a lot! Denis Vlasenko wrote:
On Monday 16 July 2007 08:59, Juan Martin wrote:Hi,I've the following script, that reads a set of parameters from a .conf file and load it into vars... it works OK on my Debian Box but... It just produces no answer on BusyBox with the exception of a blank line for each "echo" in the script...So I'm thinking about it doesn't put values on the vars (that's why it produces blank echo lines...)Anybody knows what can be going wrong? Something could be different on BB? I looks alright to me!Please provide non-linewrapped version of the script (I think attaching it is safer in this regard than inline paste), example .conf file you feed into it and "correct" output from Debian -- vda
-
[set_1] hostname=BlackBox01 UserPass=empty WIFI=0 ESSID=ABCDF WEP_key=000-000-000-000 DHCP=0 STATIC_IP=192.xxx.xxx.xxx GATEWAY=192.xxx.xxx.xxx DNS1=xxx.xxx.xxx.xxx DNS2=xxx.xxx.xxx.xxx.
Setup.sh
Description: application/shellscript
--- Configuration [set_1] --- cfg_DHCP=0 cfg_DNS1=xxx.xxx.xxx.xxx cfg_DNS2=xxx.xxx.xxx.xxx. cfg_ESSID=ABCDF cfg_GATEWAY=192.xxx.xxx.xxx cfg_STATIC_IP=192.xxx.xxx.xxx cfg_UserPass=empty cfg_WEP_key=000-000-000-000 cfg_WIFI=0 cfg_hostname=BlackBox01 0 000-000-000-000 BlackBox01
_______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
