Erich Titl wrote:

Charles

At 23:43 06.07.2004, Charles Steinkuehler wrote:
<snip>
IIRC, busybox ash has several compile-time options to allow for smaller size (by omitting "lesser-used" features that the complex scripts in LEAF tend to rely on). Are you sure you had everything enabled when you built the busybox ash and it still didn't work with Bering?

As sure as I can be, (which may not mean a lot.....), but then why do we have a separate implementation of ash, sed, halt, klogd, reboot, syslogd, watchdog, wget..... I believe busybox is part of initrd.lrp

Historical issues, in part (busybox didn't include ash, set, etc. when LRP was initially created). There are also compatability issues (for instance, sed is really 'put to the test' in several scripts that are part of LEAF, and I'm not sure the BB version of sed would work properly).


But then, this is busybox 0.60.5

/* vi: set sw=4 ts=4: */
// This file defines the feature set to be compiled into busybox.
// When you turn things off here, they won't be compiled in at all.
//
//// This file is parsed by sed.  You MUST use single line comments.
//   i.e.,  //#define BB_BLAH
//
//
// BusyBox Applications
//#define BB_ADJTIMEX
//#define BB_AR
#define BB_ASH

OK, you're compiling ash...

<snip>

//#define BB_TEST

...but you're *NOT* compiling test, which (as it's alter-ego '[' ) is what processes those conditional commands you were having problems with:


> definitely the bracket test  ( if [ -x /tmp/foo ] ) syntax

There should also be several ash options *OTHER* than the build switch you list above...I'm not sure where these would be in older busybox, but in the current CVS, it looks like they're in the shell directory as part of Config.in:

http://www.busybox.net/cgi-bin/cvsweb/busybox/shell/Config.in?rev=1.16&view=auto

Note the recent addition of a 64-bit math support, which might be handy for LEAF...

--
Charles Steinkuehler
[EMAIL PROTECTED]


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com


_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to