From 7f6821d7c24ede2372533042e80c843b035cad0b Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 12 Dec 2019 10:40:08 +0300 Subject: busybox: split busybox and busybox-init --- core/busybox-init/build | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 core/busybox-init/build (limited to 'core/busybox-init/build') 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 -- cgit v1.2.3