Line 133... |
Line 133... |
133 |
|
133 |
|
134 |
cp static-binaries/modprobe $INITRD_TREE/sbin
|
134 |
cp static-binaries/modprobe $INITRD_TREE/sbin
|
135 |
cp static-binaries/busybox $INITRD_TREE/bin
|
135 |
cp static-binaries/busybox $INITRD_TREE/bin
|
136 |
cp static-binaries/unionctl_${ARCH} $INITRD_TREE/bin/unionctl
|
136 |
cp static-binaries/unionctl_${ARCH} $INITRD_TREE/bin/unionctl
|
137 |
[ -x /usr/sbin/unionctl.static ] && cp -a /usr/sbin/unionctl.static $INITRD_TREE/bin/unionctl
|
137 |
[ -x /usr/sbin/unionctl.static ] && cp -a /usr/sbin/unionctl.static $INITRD_TREE/bin/unionctl
|
138 |
ln -s busybox $INITRD_TREE/bin/ash
|
- |
|
139 |
ln -s busybox $INITRD_TREE/bin/sh
|
- |
|
140 |
ln -s busybox $INITRD_TREE/bin/[
|
138 |
ln -s busybox $INITRD_TREE/bin/[
|
141 |
|
- |
|
- |
|
139 |
ln -s busybox $INITRD_TREE/bin/[[
|
142 |
BUSYBOXCMDS="ash awk basename cat chmod chown chroot \
|
140 |
BUSYBOXCMDS="ash awk basename cat chmod chown chroot \
|
143 |
clear cp cut dd df dirname du echo egrep eject \
|
141 |
clear cp cut dd df dirname du echo egrep eject \
|
144 |
expr false fdisk fgrep find free grep gunzip halt \
|
142 |
expr false fdisk fgrep find free grep gunzip halt \
|
145 |
hdparm head hostname ifconfig ifdown ifup insmod \
|
143 |
hdparm head hostname ifconfig ifdown ifup insmod \
|
146 |
kill killall last ln logger losetup ls lsmod md5sum \
|
144 |
kill killall last ln logger losetup ls lsmod md5sum \
|
147 |
mkdir mkfifo mknod mkswap mktemp more \
|
145 |
mkdir mkfifo mknod mkswap mktemp more \
|
148 |
mount mv pivot_root poweroff ps pwd readlink realpath \
|
146 |
mount mv pivot_root poweroff ps pwd readlink realpath \
|
149 |
reboot rm rmdir rmmod route sed sh sleep sort \
|
147 |
reboot rm rmdir rmmod route sed sh sleep sort \
|
150 |
swapoff swapon sync tail tar tee test touch tr \
|
148 |
swapoff swapon sync tail tar tee test touch tr \
|
151 |
true umount uname uniq vi wc xargs zcat"
|
149 |
true umount uname uniq vi wc xargs zcat"
|
152 |
|
- |
|
153 |
for c in $BUSYBOXCMDS; do
|
150 |
for c in $BUSYBOXCMDS; do
|
154 |
ln -s busybox $INITRD_TREE/bin/$c
|
151 |
ln -s busybox $INITRD_TREE/bin/$c
|
155 |
done
|
152 |
done
|
156 |
|
153 |
|
157 |
# dhcp startup script
|
154 |
# dhcp startup script
|