#!/bin/sh
#130217 recompiled bb 1.21.0 with f2fs patch, in aboriginal uclibc f.s. (ref: input216).

#compiled busybox statically in 'buildroot', snapshot on 8 nov. 2011
#BBAPPLETS="'[' '[[' acpid addgroup adduser ash base64 basename bbconfig beep blkid blockdev bunzip2 busybox bzcat bzip2 cal cat chgrp chmod chown chpasswd chroot chvt cksum clear cmp cp cpio crond crontab cryptpw cut date dc dd deallocvt delgroup deluser depmod devmem df dhcprelay diff dirname dmesg dnsdomainname dos2unix dpkg dpkg-deb du dumpkmap dumpleases echo ed egrep eject env expand expr false fbset fbsplash fdflush fdformat fdisk fgconsole fgrep find findfs flashcp flash_eraseall flash_lock flash_unlock flock fold free freeramdisk fsck fsync ftpget ftpput fuser getconf getopt getty grep groups gunzip gzip halt hd hdparm head hexdump hostid hostname httpd hwclock id ifconfig ifdown ifplugd ifup init inotifyd insmod ionice iostat ip ipaddr ipcalc iplink iproute iprule iptunnel kbd_mode kill killall klogd ldconfig ldd less ln loadfont loadkmap logger login logname logread losetup ls lsmod lspci lsusb lzcat lzma lzop lzopcat makedevs man md5sum mdev mesg microcom mkdir mkdosfs mke2fs mkfifo mkfs.ext2 mkfs.reiser mkfs.vfat mknod mkpasswd mkswap mktemp modinfo modprobe more mount mountpoint mpstat mv nameif nc netstat nice nohup nslookup od openvt passwd patch pgrep pidof ping pipe_progress pivot_root pkill pmap poweroff powertop printenv printf ps pscan pstree pwd pwdx rdate rdev readlink realpath reboot renice reset resize rev rfkill rm rmdir rmmod route rpm rpm2cpio rtcwake run-parts sed seq setconsole setfont setkeycodes setlogcons setserial sh sha1sum sha256sum sha512sum showkey sleep sort split start-stop-daemon stat strings stty su sulogin sum swapoff swapon switch_root sync sysctl syslogd tac tail tar tee telnet test tftp time timeout top touch tr traceroute true tty ttysize tune2fs udhcpc udhcpd umount uname uncompress unexpand uniq unix2dos unlzma unlzop unxz unzip uptime usleep uudecode uuencode vi vlock volname watch wc wget which whoami xargs xz xzcat yes zcat"
#...er, that is the full build. this is for initrd...
#BBAPPLETS="'[' '[[' ash basename bbconfig beep blkid blockdev bunzip2 bzcat cat chgrp chmod chown chroot clear cp cut dc dd depmod devmem df dirname dmesg du echo egrep eject expr false fdisk fgrep find findfs free freeramdisk fsync grep gunzip halt hd head hexdump hwclock init insmod kill killall klogd ln loadfont loadkmap logger login logread losetup ls lsmod lspci lsusb mdev mkdir mkdosfs mke2fs mkfs.ext2 mkfs.reiser mkfs.vfat mknod mkswap modinfo modprobe more mount mv passwd pidof pipe_progress pivot_root poweroff printf ps pstree pwd pwdx rdev readlink reboot renice rev rm rmdir rmmod sed seq setfont setkeycodes setlogcons setserial sh showkey sleep sort stat swapoff swapon switch_root sync syslogd tail tee test timeout touch tr true tune2fs umount uname unxz usleep volname wc xargs xz xzcat zcat"
#130217 update list...
BBAPPLETS="'[' '[[' ash basename bbconfig beep blkid blockdev bunzip2 bzcat cat chgrp chmod chown chroot clear cp cut dc dd depmod devmem df dirname dmesg du echo egrep eject expr false fdisk fgrep find findfs free freeramdisk fsync grep gunzip halt hd head hexdump hwclock init insmod kill killall klogd ln loadfont loadkmap logger login logread losetup ls lsmod lsof lspci lsusb mdev mkdir mkdosfs mke2fs mkfs.ext2 mkfs.reiser mkfs.vfat mknod mkswap modinfo modprobe more mount mv passwd pidof pipe_progress pivot_root poweroff printf ps pstree pwd pwdx rdev readlink reboot renice rev rm rmdir rmmod sed seq setfont setkeycodes setlogcons setserial sh sha1sum showkey sleep sort stat swapoff swapon switch_root sync syslogd tail tee test timeout touch tr true tune2fs umount uname uniq unxz usleep volname wc xargs xz xzcat zcat"

for ONEAPPLET in $BBAPPLETS
do
 ONEAPPLET="`echo -n "$ONEAPPLET" | tr -d "'"`" #'geany
 [ ! -e "$ONEAPPLET" ] && ln -s busybox "$ONEAPPLET"
done
