I decided to migrate to busybox on my embedded Debian to save a some space. You can either do this on the running system or you can do it while building it in the chroot environment.
apt-get install busybox
cd ~/
vi setuplinks.sh
#!/bin/bash which busybox &>/dev/null if [ $? != 0 ] then echo "Busybox is not present in the working path." exit 1 fi oIFS=$IFS IFS=" , " export BB=`which busybox` for i in `cat busycmds` do if [ $i == "busybox" ] then continue fi which $i &>/dev/null if [ $? == 0 ] then ln -f $BB `which $i` ls -i `which $i` else ln $BB /usr/bin/$i echo make $i fi done IFS=$oIFS
vi busycmds
[, [[, adjtimex, ar, arping, ash, awk, basename, bunzip2, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, cut, date, dc, dd, deallocvt, df, dirname, dmesg, dos2unix, du, dumpkmap, dumpleases, echo, egrep, env, expr, false, fgrep, find, fold, free, ftpget, ftpput, getopt, grep, gunzip, gzip, head, hexdump, hostid, hostname, httpd, id, ifconfig, ip, ipaddr, ipcalc, iplink, iproute, iptunnel, kill, killall, klogd, last, length, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, ls, md5sum, mkdir, mkfifo, mknod, mktemp, more, mount, mt, mv, nameif, nc, netstat, nslookup, od, openvt, patch, pidof, ping, ping6, printf, ps, pwd, rdate, readlink, realpath, renice, reset, rm, rmdir, route, rpm, rpm2cpio, run-parts, sed, setkeycodes, sh, sha1sum, sleep, sort, start-stop-daemon, strings, stty, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname, uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode, vi, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat
Then:
sh ~/setuplinks.sh