diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -39,9 +39,13 @@ install: build mkdir -p dest/usr/share/busybox set -e; exec 3>dest/usr/share/busybox/alternatives; \ for f in dest/bin/* dest/sbin/* dest/usr/bin/* dest/usr/sbin/*; do \ - [ x"$${f}" = x'dest/bin/busybox' ] && continue; \ - mv "$${f}" "$${f}.busybox"; \ - printf '%s\n' "$${f#dest}" >&3; \ + case "$${f}" in \ + dest/bin/busybox | dest/bin/sh) ;; \ + *) \ + mv "$${f}" "$${f}.busybox"; \ + printf '%s\n' "$${f#dest}" >&3; \ + ;; \ + esac; \ done; \ exec 3>&- set -e; $(config_enabled); $(install_init_script); \ |