setup_busybox () fix compat with TWRP that uses busybox instead of toolbox

merge-requests/35/head
Christopher Roy Bratusek 3 years ago
parent 609e2af604
commit a05fdf8e71

@ -881,10 +881,11 @@ nanodroid_finalize () {
##########################################################################################
setup_busybox () {
if [[ "$(uname -m)" == a* ]]; then
local bb_arch=arm
else local bb_arch=x86
fi
case $(uname -m) in
arm* ) local bb_arch=arm ;;
x86* ) local bb_arch=x86 ;;
* ) error "arch \"$(uname -m)\" is not supported"
esac
mkdir -p ${INSTALLER}/busybox
ln -s ${INSTALLER}/busybox.${bb_arch} ${INSTALLER}/busybox/busybox

@ -332,10 +332,11 @@ detect_odex () {
##########################################################################################
setup_busybox () {
if [[ "$(uname -m)" == a* ]]; then
local bb_arch=arm
else local bb_arch=x86
fi
case $(uname -m) in
arm* ) local bb_arch=arm ;;
x86* ) local bb_arch=x86 ;;
* ) error "arch \"$(uname -m)\" is not supported"
esac
if [ -f ${TMPDIR}/busybox.${bb_arch} ]; then
BUSY=${TMPDIR}/busybox.${bb_arch}

@ -313,10 +313,11 @@ grep_cmdline() {
}
setup_busybox () {
if [[ "$(uname -m)" == a* ]]; then
local bb_arch=arm
else local bb_arch=x86
fi
case $(uname -m) in
arm* ) local bb_arch=arm ;;
x86* ) local bb_arch=x86 ;;
* ) error "arch \"$(uname -m)\" is not supported"
esac
mkdir -p ${TMPDIR}/busybox
ln -s ${TMPDIR}/busybox.${bb_arch} ${TMPDIR}/busybox/busybox

@ -65,10 +65,11 @@ setup_busybox () {
unzip -oq "${ZIP}" busybox.arm -d "/dev/tmp"
unzip -oq "${ZIP}" busybox.x86 -d "/dev/tmp"
if [[ "$(uname -m)" == a* ]]; then
local bb_arch=arm
else local bb_arch=x86
fi
case $(uname -m) in
arm* ) local bb_arch=arm ;;
x86* ) local bb_arch=x86 ;;
* ) error "arch \"$(uname -m)\" is not supported"
esac
mkdir -p /dev/tmp/busybox
ln -s /dev/tmp/busybox.${bb_arch} /dev/tmp/busybox/busybox

Loading…
Cancel
Save