summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/build b/build
index 57f9148..7dd21f6 100755
--- a/build
+++ b/build
@@ -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); \