2013-09-06 08:31:51 +00:00
|
|
|
url=$mirror/busybox
|
2013-09-05 12:28:34 +00:00
|
|
|
|
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
|
2013-09-23 12:36:14 +00:00
|
|
|
pushd $root
|
2013-09-26 15:26:46 +00:00
|
|
|
ln -sf bin/busybox init
|
2013-09-23 12:36:14 +00:00
|
|
|
popd
|
2013-09-06 08:31:51 +00:00
|
|
|
pushd $root/bin
|
2013-09-26 15:26:46 +00:00
|
|
|
ln -sf busybox addgroup
|
|
|
|
ln -sf busybox adduser
|
|
|
|
ln -sf getty agetty
|
|
|
|
ln -sf busybox bzip2
|
|
|
|
ln -sf busybox delgroup
|
|
|
|
ln -sf busybox deluser
|
|
|
|
ln -sf busybox diff
|
|
|
|
ln -sf busybox du
|
|
|
|
ln -sf busybox dd
|
|
|
|
ln -sf busybox ed
|
2013-09-27 14:22:28 +00:00
|
|
|
ln -sf busybox expr
|
2013-09-26 15:26:46 +00:00
|
|
|
ln -sf busybox find
|
|
|
|
ln -sf busybox fsck
|
|
|
|
ln -sf busybox fuser
|
|
|
|
ln -sf busybox getty
|
|
|
|
ln -sf busybox hexdump
|
|
|
|
ln -sf busybox hwclock
|
|
|
|
ln -sf busybox ifconfig
|
|
|
|
ln -sf busybox kbd_mode
|
|
|
|
ln -sf busybox killall5
|
|
|
|
ln -sf busybox less
|
|
|
|
ln -sf busybox login
|
|
|
|
ln -sf busybox nc
|
|
|
|
ln -sf busybox passwd
|
|
|
|
ln -sf busybox ping
|
|
|
|
ln -sf busybox pkill
|
|
|
|
ln -sf busybox poweroff
|
|
|
|
ln -sf busybox reboot
|
|
|
|
ln -sf busybox sysctl
|
|
|
|
ln -sf busybox tac
|
|
|
|
ln -sf busybox telnet
|
|
|
|
ln -sf busybox tftp
|
|
|
|
ln -sf busybox tftpd
|
|
|
|
ln -sf busybox top
|
|
|
|
ln -sf busybox vi
|
|
|
|
ln -sf busybox wget
|
2013-09-06 08:31:51 +00:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
}
|