Thread: BusyBox v1.18.4
View Single Post
Posts: 268 | Thanked: 1,053 times | Joined on May 2010 @ The Netherlands
#30
Originally Posted by Radicalz38 View Post
There is actually maybe a bug... When you install this busybox whenever you try using kernel-config load you'll get a bunch of output saying sh: bad number
Some googling reveals that this is because a shell script wants to do something with uninitialized variables. A quick glance at the kernel-config script revealed the following:

In the kernel-config script you'll see at lines 174, 175 and 176:
Code:
   active=
   minfreq=
   maxfreq=
When you add a zero after all the equals signs, the "sh: bad number:" messages will disappear.On a side note, the reason that you saw a bunch of those messages was because those variables are in a for loop.

The new busybox version appears to be a little bit more verbose than the stock one. Nonetheless, all shell scripts should work exactly the same as with the old busybox version.

Anyway, it seems that the proper fix to those messages is to properly initialize all variables before they're used. I could also create a small patch to bring back the old (quiet) behavior; I'll look into that.
Edit: a patch is now included to revert to the described old behavior, the files linked to in this post are updated.

Last edited by iDont; 2011-05-02 at 22:23.
 

The Following 5 Users Say Thank You to iDont For This Useful Post: