Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
zgfg authored Jun 5, 2023
1 parent f466984 commit cb21299
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions post-fs-data.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/system/bin/sh

# Magisk Module: Magisk built-in BusyBox v1.0.4
# Magisk Module: Magisk built-in BusyBox v1.0.5
# Copyright (c) zgfg @ xda, 2022-
# GitHub source: https://github.com/zgfg/BuiltIn-BusyBox

Expand All @@ -14,8 +14,8 @@ exec 2>$LogFile
set -x

# System XBIN path
XBINDIR=/system/xbin
BINDIR=/system/bin
XBINDIR=/system/xbin

# Local XBIN and (or) BIN paths for mounting
BBXBINDIR=$MODDIR$XBINDIR
Expand All @@ -28,7 +28,7 @@ then
BBDIR=$BBXBINDIR
else
SDIR=$BINDIR
BBDIR=$BBBINDIR
BBDIR=$BBBINDIR
fi

# Clean-up local XBIN and BIN paths
Expand All @@ -39,24 +39,24 @@ cd $BBDIR

# ToyBox path
TBDIR="/data/adb/modules/ToyBox-Ext/$SDIR"

# Magisk built-in BusyBox
BB=busybox
BBBIN=/data/adb/magisk/$BB

# List BusyBox applets
Applets="$BB"$'\n'"$($BBBIN --list)"

# Create symlinks for busybox applets
# Create local symlinks for BusyBox applets
for Applet in $Applets
do
Target=$SDIR/$Applet
if [ ! -x $Target ] || [ -h $Target ]
if [ ! -x $Target ] || [ -h $Target ]
then
# Create symlink
ln -s $BBBIN $Applet

# Remove symlink for ToyBox applet (prefer BusyBox)
# Remove local symlink for ToyBox applet (prefer BusyBox)
Target=$TBDIR/$Applet
if [ -h $Target ]
then
Expand Down

0 comments on commit cb21299

Please sign in to comment.