File tree Expand file tree Collapse file tree 4 files changed +34
-12
lines changed Expand file tree Collapse file tree 4 files changed +34
-12
lines changed Original file line number Diff line number Diff line change
1
+ #### v1.0.3
2
+
3
+ Create symlinks only if applet not found in path
4
+
1
5
#### v1.0.2
2
6
3
7
Install to /system/bin if /system/xbin does not exist
Original file line number Diff line number Diff line change 1
1
id=BuiltIn-BusyBox
2
2
name=BuiltIn BusyBox
3
- version=1.0.2
4
- versionCode=102
3
+ version=1.0.3
4
+ versionCode=103
5
5
author=zgfg @ xda
6
6
description=Systemless BusyBox installed by the Magisk built-in busybox binary
7
7
updateJson=https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/BuiltIn-BusyBox/main/update.json
Original file line number Diff line number Diff line change 16
16
BBDIR=$BBBINDIR
17
17
fi
18
18
19
- # Local busybox binary path for mounting
20
- BBBIN=$BBDIR /busybox
21
-
22
19
# Clean-up local XBIN and BIN paths
23
20
rm -rf $BBXBINDIR
24
21
rm -rf $BBBINDIR
25
22
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
27
36
mkdir -p $BBDIR
37
+ cd $BBDIR
38
+ cp $MAGISKBBBIN $BBBIN
28
39
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
Original file line number Diff line number Diff line change 1
1
{
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" ,
5
5
"changelog" : " https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/BuiltIn-BusyBox/main/changelog.md"
6
6
}
You can’t perform that action at this time.
0 commit comments