Busybox
-------

Busybox is a toolkit that offeres a variaty of standard unix tools such as
ls, rm, test in one binary and with reduced functionality in order to save
space.

Midori Linux replaces some tools and adds a few additional one. See ../src/busybox 
for details. As of today, the following tools were added:

        od        hex dump of stdin
        keydown   tests if a certain key is pressed. Used in shell scripts
        uplo      configure lo network interface
        su        replacement for su to drop priviledges
        spawn     start program on different vt
        backlight turn backlight on SMI LCD screens on and off

The tools replaced are

        halt      don't call init, stop system via system call
        reboot    don't call init, stop system via system call
        wget      add progress bar


Installation
------------

Midori linux usually compiles busybox twice with different options. One version
is installed in the root partition and must contain all the tools necessary to
boot the system and mount the usr partition, and also start the network and
upgrade the usr partition in order to recover from a failed upgrade.

The usr partition busybox should contain additional tools necessary to run
programs stored in the usr partition.


Configuration
-------------

There are two ways to define which tools have to be installed in which
partition. Either you can set the BUSYBOX_USR and BUSYBOX_ROOT variables in
your config file (but make sure you do not remove tools from BUSYBOX_ROOT
unless you know what you are doing)

An example would be

        BUSYBOX_USR="OD RMDIR"

Please see the busybox config file in ../cache/build/busybox*/root/Config.h.orig 
for a list of all options you can turn on (make sure to remove the initial BB_
from the option name).

Additionally you can add the same strings to the file cache/image/busybox.root
and cache/image/busybox.usr. Usually, this is done by setting the variables
BUSYBOXR and BUSYBOXU in your script as in 

        BUSYBOXU="OD RMDIR"

The standard build functions will take care of the rest.


Full Installation
-----------------

If you want to build all the busybox tools you can set either BUSYBOX_ROOT or
BUSYBOX_USR to 'fat', as in 

        BUSYBOX_ROOT=fat

This is only recommended for debugging purposes.

Note that a few tools may never be installed. They are listed in
BUSYBOX_FORBIDDEN. If you try to add them to one of the variables they will be
ignored (no warning message).
