diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -31,18 +31,13 @@ install: oh-fixperms oh-strip chmod u+s dest/bin/busybox - set -e; for path in \ - /usr/bin/awk \ - /usr/bin/ar \ - /usr/bin/strings \ - /usr/bin/clear \ - /usr/bin/reset \ - /usr/bin/mkpasswd \ - ; do \ - if [ -e "dest/$${path}" ]; then \ - mv "dest/$${path}" "dest/$${path}.busybox"; \ + set -e; while read link name prio; do \ + if [ -e "dest/$${link}" ]; then \ + mv "dest/$${link}" "dest/$${link}.busybox"; \ fi; \ - done + done <../alternatives + mkdir -p dest/usr/share/busybox + cp ../alternatives dest/usr/share/busybox set -e; $(config_enabled); $(install_init_script); \ if config_enabled INIT; then \ install -d -m 0755 dest/etc; \ |