forked from alnux/repo
14 lines
349 B
Text
Executable file
14 lines
349 B
Text
Executable file
wget -O busybox-1.33.1.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2
|
|
tar -xf busybox-1.33.1.tar.bz2
|
|
cd busybox-1.33.1
|
|
|
|
make defconfig
|
|
LDFLAGS="--static" make
|
|
make install DESTDIR="$1"
|
|
|
|
rsync -a ./busybox/ "$1"/bin/
|
|
cd "_install"
|
|
install linuxrc "$1"/linuxrc
|
|
cp -npr ./bin/ "$1"/bin/
|
|
cp -npr ./sbin/ "$1"/sbin/
|
|
cp -npr ./usr "$1"/usr/
|