You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
linux-486/build-busybox.sh

24 lines
655 B
Bash

#!/bin/bash
if [ ! -e ./busybox-1.20.0.tar.bz2 ] ; then
echo "Fetching busybox..."
wget https://www.busybox.net/downloads/busybox-1.20.0.tar.bz2
fi
if [ ! -e ./busybox-1.20.0 ] ; then
echo "Extracting busybox..."
tar xf busybox-1.20.0.tar.bz2
cp config-busybox-1.20.0 busybox-1.20.0/.config
cd busybox-1.20.0
echo "Patching busybox..."
patch include/libbb.h < ../busybox/libbb.h.patch
patch Makefile.flags < ../busybox/Makefile.flags.patch
cd ..
fi
BUSYBOX_NO_CRYPT_CHECK=1 make -C busybox-1.20.0 -j8
lzma -zc9 busybox-1.20.0/busybox > floppy/boot/busyboz
echo "Busybox is now installed to the floppy folder."