# Title:        Busybox (Shell Utilities)
# Description:  Busybox provides a lot of important shell utilities, although
#               in most cases simplified and smaller ones than the "real" GNU
#               utilities. The advantage is a smaller footprint.
# Packager:     Claudio Fleiner (Transmeta)
# Menu:         utilities/os
# URL:          http://busybox.lineo.com/

# Name:         BUSYBOX_ROOT
# Description:  List of busybox tools to install in the root partition. The names used must be the ones
#               defined in Config.h (in the busybox tarball), without the leading BB_. Instead of
#               a list of utilities you can also set the variable to 'fat' in order to install everything.
#               Be aware that midori linux packages can also add tools by appending their names to the file
#               cache/image/busybox.root.
# Type:         PERL  
#               package BUSYBOX_ROOT;
#               @ISA=qw( PARAMETER );
#               my @bb=( "AR", "BASENAME", "CAT", "CHMOD_CHOWN_CHGRP", "CHROOT", "CHVT", "CLEAR", "CP_MV", "CUT", "DATE", "DC",
#                     "DD", "DEALLOCVT", "DF", "DIRNAME", "DMESG", "DOS2UNIX", "DUTMP", "DU", "DUMPKMAP", "ECHO", "EXPR", "FBSET",
#                     "FDFLUSH", "FIND", "FREE", "FREERAMDISK", "FSCK_MINIX", "GETOPT", "GREP", "GUNZIP", "GZIP", "HEAD",
#                     "HOSTID", "HOSTNAME", "ID", "INSMOD", "KILL", "KILLALL", "LENGTH", "LN", "LOADACM", "LOADFONT", "LOADKMAP",
#                     "LOGGER", "LOGNAME", "LS", "LSMOD", "MAKEDEVS", "MD5SUM", "MKDIR", "MKFIFO", "MKFS_MINIX", "MKNOD", "MKTEMP",
#                     "NC", "MORE", "MOUNT", "MT", "NSLOOKUP", "PING", "PRINTF", "PS", "PWD", "RDATE", "RENICE", "RESET",
#                     "RM", "RMDIR", "RMMOD", "SED", "SETKEYCODES", "SH", "SLEEP", "SORT", "SWAPONOFF", "SYNC", "SYSLOGD", "TAIL",
#                     "TAR", "TEE", "TEST", "TELNET", "TOUCH", "TR", "TRUE_FALSE", "TTY", "UNRPM", "UPTIME", "USLEEP", "WC", "WGET",
#                     "WHICH", "WHOAMI", "UUENCODE", "UUDECODE", "UMOUNT", "UNIQ", "UNAME", "UNIX2DOS", "UPDATE", "XARGS", "OD",
#                     "KEYDOWN", "UPLO", "SU", "SPAWN", "BACKLIGHT", "YES" );
#               my %bb;
#               sub initialize { my $self=shift; bless $self; 
#                       foreach my $i (@bb) { $bb{$i}=1; }
#               }
#               sub valign { return "valign=top"; }
#               sub printacceptable {
#                       my $self=shift; my $file=shift;
#                       print $file "<tr><td>Acceptable Values:</td><td><small>Either \"fat\" or a list out of: ";
#                       foreach my $i (@bb) { print $file "$i "; }
#                       print $file ".</td></tr>\n";
#               }
#               sub printhtml {
#                       my $self=shift; my $file=shift;
#                       print $file "<table border=0>\n";
#                       print $file "<tr><td><input type=radio name=".$self->name."r ".($self->edit =~ /fat/ ?"checked":"")." value=fat></td><td>fat</td></tr>\n";
#                       print $file "<tr><td valign=top><input type=radio name=".$self->name."r ".($self->edit !~ /fat/ ?"checked":"")." value=list></td><td>select:<br><small>\n";
#                       my $s=" ".$self->edit." ";
#                       foreach my $i (@bb) { (my $j=$i)=~tr/A-Z/a-z/; print $file "<input type=checkbox ".($s =~ / $i /?"checked":"")." name=".$self->name."_$i>$j\n"; }
#                       print $file "</small></td></tr></table>\n";
#               }
#               sub check {
#                       my $self=shift;my $ch=shift;
#                       return 1 if($ch eq "fat");
#                       foreach my $i (split(/ +/,$ch)) { return 0 if($i ne "" && !defined($bb{$i})); }
#                       return 1;
#               }
#               sub fixfields {
#                       my $self=shift;my $fields=shift;
#                       if($$fields{$self->name."r"} eq "fat") {
#                               $$fields{$self->name}="fat";
#                       } else {
#                               $$fields{$self->name}="";
#                               foreach my $i (@bb) { 
#                                       $$fields{$self->name}.=" $i" if(defined($$fields{$self->name."_$i"}) && $$fields{$self->name."_$i"} eq "on");
#                               }
#                       }
#               }
#               1;
# Default:      "PWD CAT CHMOD_CHOWN_CHGRP CP_MV DATE ECHO LN KILL KILLALL MKDIR MOUNT RM SED SLEEP UPLO SU"
BUSYBOX_ROOT="PWD CAT CHMOD_CHOWN_CHGRP CP_MV DATE ECHO LN KILL KILLALL MKDIR MOUNT RM SED SLEEP UPLO SU"

# Name:         BUSYBOX_USR
# Description:  List of busybox tools to install in the user partition. The names used must be the once
#               defined in Config.h (in the busybox tarbal), without the leading BB_. Instead of
#               a list of utilities you can also set the variable to 'fat' in order to install everything.
#               Note that if you list utilities that are also listed un BUSYBOX_ROOT they will be ignored
#               here and not installed in the user partition.
#               Be aware that midori linux packages can also add tools by appending their names to the file
#               cache/image/busybox.usr.
# Type:         PERL
#               package BUSYBOX_USR;
#               @ISA=qw( BUSYBOX_ROOT );
#               1;
# Default:      ""
BUSYBOX_USR=""

# Name:         BUSYBOX_FORBIDDEN
# Description:  BUSYBOX_FORBIDDEN contains a few utilities that break the system if they are installed.
#               They are best left alone.
# Type:         READONLY
# Default:      "INIT HALT REBOOT POWEROFF SH FEATURE_LINUXRC MKSWAP SWAPON SWAPOFF"
BUSYBOX_FORBIDDEN="INIT POWEROFF SH FEATURE_LINUXRC MKSWAP SWAPON SWAPOFF"

# Name:         BUSYBOX_MLCONFIG_REBOOT
# Description:  Set to yes if you want to include the option to reboot the machine
#               into the mlconfig system
# Type:         YESNO
# Default:      yes
BUSYBOX_MLCONFIG_REBOOT=yes

# Name:         BUSYBOX_MLCONFIG_POWER_OFF
# Description:  Set to yes if you want to include the option to power off the machine
#               into the mlconfig system
# Type:         YESNO
# Default:      yes
BUSYBOX_MLCONFIG_POWER_OFF=yes

# Name:         BUSYBOX_MLCONFIG_SWITCH
# Description:  Set to yes if you want to allow switching of console in the mlconfig system.
# Type:         YESNO
# Default:      yes
BUSYBOX_MLCONFIG_SWITCH=yes

# Name:         BUSYBOX_MLCONFIG_ROOT
# Description:  Set to yes if you want to allow opening root console.
# Type:         YESNO
# Default:      yes
BUSYBOX_MLCONFIG_ROOT=yes

# Name:         BUSYBOX_MLCONFIG_TIME
# Description:  Set to yes if you want to allow setting the time via the mlconfig interface
# Type:         YESNO
# Default:      yes
BUSYBOX_MLCONFIG_TIME=yes

# Name:         BUSYBOX_MLCONFIG_TIMEZONE
# Description:  Set to yes if you want to allow setting the timezone via the mlconfig interface
# Type:         YESNO
# Default:      yes
BUSYBOX_MLCONFIG_TIMEZONE=yes
