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 7, 2023
1 parent fcb3860 commit 7a77fb4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
10 changes: 3 additions & 7 deletions post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ magisk --path
# Clean-up old stuff
rm -rf "$MODDIR/system"

# XBIN and (or) BIN paths for mounting
# Choose XBIN or BIN path
SDIR=/system/xbin
if [ ! -d $SDIR ]
then
Expand All @@ -28,8 +28,9 @@ fi
BBDIR=$MODDIR$SDIR
mkdir -p $BBDIR
cd $BBDIR
pwd

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

# Magisk built-in BusyBox
Expand All @@ -55,14 +56,9 @@ do
then
rm -f $Target
fi
else
echo "Skip $Applet"
Target=$(which $Applet)
fi
done

# Log results
Applets=$(ls -1)
pwd
ls -l $BB
ls | wc -l
35 changes: 35 additions & 0 deletions service.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/system/bin/sh

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

# Module's own path (local path)
MODDIR=${0%/*}

# Log file for debugging
LogFile="$MODDIR/service.log"
exec 2>$LogFile 1>&2
set -x

# Log time
date +%c

# Log Magisk version and magisk --path
magisk -c
magisk --path

# Choose XBIN or BIN path
SDIR=/system/xbin
if [ ! -d $SDIR ]
then
SDIR=/system/bin
fi
cd $SDIR
pwd

# Log results
ls -l | grep busybox | rev | cut -d ' ' -f 3 | rev
ls -l | grep busybox | wc -l
ls -l | grep toybox | wc -l
ls -l | grep toybox-ext | wc -l

0 comments on commit 7a77fb4

Please sign in to comment.