diff options
author | Cem Keylan <cem@ckyln.com> | 2019-12-12 10:40:08 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2019-12-12 10:40:08 +0300 |
commit | 7f6821d7c24ede2372533042e80c843b035cad0b (patch) | |
tree | 1477ea7dd1d6b47b138a19a10aa68c3b1ddfba16 /core/busybox-init/build | |
parent | fae9a4ce6b6de61098ef199b4de8a6348eff300e (diff) | |
download | repository-7f6821d7c24ede2372533042e80c843b035cad0b.tar.gz |
busybox: split busybox and busybox-init
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 |