Skip to content

Commit 39e74af

Browse files
authored
Add files via upload
1 parent c83e5ae commit 39e74af

File tree

4 files changed

+34
-12
lines changed

4 files changed

+34
-12
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### v1.0.3
2+
3+
Create symlinks only if applet not found in path
4+
15
#### v1.0.2
26

37
Install to /system/bin if /system/xbin does not exist

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=BuiltIn-BusyBox
22
name=BuiltIn BusyBox
3-
version=1.0.2
4-
versionCode=102
3+
version=1.0.3
4+
versionCode=103
55
author=zgfg @ xda
66
description=Systemless BusyBox installed by the Magisk built-in busybox binary
77
updateJson=https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/BuiltIn-BusyBox/main/update.json

post-fs-data.sh

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,34 @@ else
1616
BBDIR=$BBBINDIR
1717
fi
1818

19-
# Local busybox binary path for mounting
20-
BBBIN=$BBDIR/busybox
21-
2219
# Clean-up local XBIN and BIN paths
2320
rm -rf $BBXBINDIR
2421
rm -rf $BBBINDIR
2522

26-
# Create local path for mounting busybox
23+
# busybox binary
24+
BBBIN=busybox
25+
MAGISKBBBIN=/data/adb/magisk/$BBBIN
26+
27+
# Install and list busybox applets using TMP dir
28+
TMPDIR=$MODDIR/tmp
29+
rm -rf $TMPDIR
30+
mkdir -p $TMPDIR
31+
$MAGISKBBBIN --install -s $TMPDIR
32+
Applets=$(ls $TMPDIR)
33+
rm -rf $TMPDIR
34+
35+
# Copy the Magisk built-in busybox locally
2736
mkdir -p $BBDIR
37+
cd $BBDIR
38+
cp $MAGISKBBBIN $BBBIN
2839

29-
# Copy the Magisk built-in busybox locally and install and create symlinks
30-
cp /data/adb/magisk/busybox $BBBIN
31-
$BBBIN --install -s $BBDIR
40+
# Create symlinks for applets
41+
for Applet in $Applets
42+
do
43+
# Skip if applet already found in the path
44+
Check=$(which $Applet)
45+
if [ -z "$Check" ]
46+
then
47+
ln -s $BBBIN $Applet
48+
fi
49+
done

update.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"versionCode": 102,
3-
"version": "v1.0.2",
4-
"zipUrl": "https://github.com/Magisk-Modules-Alt-Repo/BuiltIn-BusyBox/releases/download/102/BuiltIn-BusyBox_v1.0.2.zip",
2+
"versionCode": 103,
3+
"version": "v1.0.3",
4+
"zipUrl": "https://github.com/Magisk-Modules-Alt-Repo/BuiltIn-BusyBox/releases/download/103/BuiltIn-BusyBox_v1.0.3.zip",
55
"changelog": "https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/BuiltIn-BusyBox/main/changelog.md"
66
}

0 commit comments

Comments
 (0)