2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-07 15:20:36 +00:00

SysTest: drop unused function

This commit is contained in:
Christopher Roy Bratusek 2019-06-13 20:10:51 +02:00
parent d909f515af
commit 9778e22636

View File

@ -37,28 +37,6 @@ is_mounted () {
return $? return $?
} }
mount_image() {
if [ ! -d "$2" ]; then
mount -o rw,remount rootfs /
mkdir -p "$2" 2>/dev/null
[ ! -d "$2" ] && return 1
fi
if ! is_mounted "$2"; then
LOOPDEVICE=
for LOOP in 0 1 2 3 4 5 6 7; do
if ! is_mounted "$2"; then
LOOPDEVICE=/dev/block/loop$LOOP
[ -e $LOOPDEVICE ] || mknod $LOOPDEVICE b 7 $LOOP 2>/dev/null
losetup $LOOPDEVICE "$1" && mount -t ext4 -o loop $LOOPDEVICE "$2"
if is_mounted "$2"; then
break;
fi
fi
done
fi
}
# taken from Magisk, with minor modifications for NanoDroid # taken from Magisk, with minor modifications for NanoDroid
mount_partitions () { mount_partitions () {
SLOT=$(grep_cmdline androidboot.slot_suffix) SLOT=$(grep_cmdline androidboot.slot_suffix)