diff options
Diffstat (limited to 'core/busybox-init/build')
-rwxr-xr-x | core/busybox-init/build | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/busybox-init/build b/core/busybox-init/build new file mode 100755 index 00000000..e3955e93 --- /dev/null +++ b/core/busybox-init/build @@ -0,0 +1,12 @@ +#!/bin/sh -e + +# Build and install busybox-init. +# This excludes utilities which require 'suid' to function. +make CC="${CC:-gcc}" +make CONFIG_PREFIX="$1/usr" install + +mv "$1/usr/bin/busybox" "$1/usr/bin/busybox-init" + +"$1/usr/bin/busybox-init" --list | while read -r bin; do + ln -s busybox-init "$1/usr/bin/$bin" +done |