summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild18
1 files changed, 12 insertions, 6 deletions
diff --git a/build b/build
index c7178fc..80d4b74 100755
--- a/build
+++ b/build
@@ -31,12 +31,18 @@ install:
oh-fixperms
oh-strip
chmod u+s dest/bin/busybox
- mv dest/usr/bin/awk dest/usr/bin/awk.busybox
- mv dest/usr/bin/ar dest/usr/bin/ar.busybox
- mv dest/usr/bin/strings dest/usr/bin/strings.busybox
- mv dest/usr/bin/clear dest/usr/bin/clear.busybox
- mv dest/usr/bin/reset dest/usr/bin/reset.busybox
- mv dest/usr/bin/mkpasswd dest/usr/bin/mkpasswd.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"; \
+ fi; \
+ done
set -e; $(config_enabled); $(install_init_script); \
if config_enabled INIT; then \
install -d -m 0755 dest/etc; \