commit cafd140c4e2e48a5445feaeee07ce422cba8616d
parent 1a481b8d53624bbb3f0822b5b22b5dbc9bbb2d51
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Sun, 15 Nov 2020 12:04:58 +0100
simpler and more resilient busybox.sh
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/busybox.sh b/busybox.sh
@@ -4,7 +4,7 @@
cp -ar etc/busybox $1
# install busybox applets as /usr/local/bin symlinks
-for link in $(LANG=C busybox --help | awk 'BEGIN{list=0}/Currently defined functions:/{list=1}/^\t/{if( list == 1 ) print}' | tr ',' '\n')
+for link in $(busybox --list)
do
test -n "$link" && ln -s /bin/busybox iso_dir/usr/local/bin/$link
done