2013-09-06 08:31:51 +00:00
|
|
|
url=$mirror/busybox
|
2013-09-05 12:28:34 +00:00
|
|
|
|
|
|
|
# Fetch package
|
2013-09-06 08:31:51 +00:00
|
|
|
fetch() {
|
|
|
|
wget -c $url -O src/busybox
|
|
|
|
}
|
2013-09-05 12:28:34 +00:00
|
|
|
|
2013-09-06 08:31:51 +00:00
|
|
|
install() {
|
|
|
|
# Install package
|
|
|
|
pushd src/
|
|
|
|
chmod +x busybox
|
|
|
|
cp busybox $root/bin
|
|
|
|
pushd $root/bin
|
|
|
|
ln -s busybox ifconfig
|
|
|
|
ln -s busybox nc
|
|
|
|
ln -s busybox getty
|
|
|
|
ln -s busybox login
|
|
|
|
ln -s busybox find
|
|
|
|
ln -s busybox du
|
|
|
|
ln -s busybox ping
|
|
|
|
ln -s busybox wget
|
|
|
|
ln -s busybox vi
|
2013-09-06 09:16:53 +00:00
|
|
|
ln -s busybox top
|
|
|
|
ln -s busybox pkill
|
2013-09-06 08:31:51 +00:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
}
|