2025-07-17 06:59:38 +00:00
|
|
|
diff --git a/applets/install.sh b/applets/install.sh
|
|
|
|
index 415896893..c1b611bfc 100755
|
2025-07-10 20:34:09 +00:00
|
|
|
--- a/applets/install.sh
|
2025-07-17 06:59:38 +00:00
|
|
|
+++ b/applets/install.sh
|
2025-07-10 20:34:09 +00:00
|
|
|
@@ -1,11 +1,11 @@
|
|
|
|
-#!/bin/sh
|
|
|
|
+#!/usr/bin/busybox sh
|
|
|
|
|
|
|
|
export LC_ALL=POSIX
|
|
|
|
export LC_CTYPE=POSIX
|
|
|
|
|
|
|
|
prefix=$1
|
|
|
|
if [ -z "$prefix" ]; then
|
|
|
|
- echo "usage: applets/install.sh DESTINATION TYPE [OPTS ...]"
|
|
|
|
+ echo "usage: busybox.install DESTINATION TYPE [OPTS ...]"
|
|
|
|
echo " TYPE is one of: --symlinks --hardlinks --binaries --scriptwrapper --none"
|
|
|
|
echo " OPTS is one or more of: --cleanup --noclobber"
|
|
|
|
exit 1
|
2025-07-17 06:59:38 +00:00
|
|
|
@@ -13,9 +13,13 @@ fi
|
2025-07-10 20:34:09 +00:00
|
|
|
shift # Keep only remaining options
|
|
|
|
|
|
|
|
# Source the configuration
|
|
|
|
-. ./.config
|
|
|
|
+#. ./.config
|
|
|
|
|
|
|
|
-h=`sort busybox.links | uniq`
|
2025-07-17 06:59:38 +00:00
|
|
|
+#this is a placeholder, it will be replaced with correct list by create-filelists.sh
|
|
|
|
+#when building the busybox-links package
|
|
|
|
+IGNORE_APPLETS=""
|
|
|
|
+
|
|
|
|
+h=`sort /usr/share/busybox/busybox.links | uniq | grep -vE "${IGNORE_APPLETS// /|}"`
|
2025-07-10 20:34:09 +00:00
|
|
|
|
|
|
|
sharedlib_dir="0_lib"
|
|
|
|
|
2025-07-17 06:59:38 +00:00
|
|
|
@@ -78,7 +82,7 @@ fi
|
2025-07-10 20:34:09 +00:00
|
|
|
|
|
|
|
rm -f "$prefix/bin/busybox" || exit 1
|
|
|
|
mkdir -p "$prefix/bin" || exit 1
|
|
|
|
-install -m 755 busybox "$prefix/bin/busybox" || exit 1
|
|
|
|
+install -m 755 /usr/bin/busybox "$prefix/bin/busybox" || exit 1
|
|
|
|
|
|
|
|
for i in $h; do
|
|
|
|
appdir=`dirname "$i"`
|