2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

string change

This commit is contained in:
Christopher Roy Bratusek 2018-08-04 20:07:14 +02:00
parent a09de7e926
commit 058e0fe42e

View File

@ -192,18 +192,18 @@ mount_partitions () {
[ "${SLOT}" = "_" ] && SLOT= [ "${SLOT}" = "_" ] && SLOT=
fi fi
is_mounted /data || mount /data 2>/dev/null is_mounted /data || mount /data
${BOOTMODE} || mount -o bind /dev/urandom /dev/random ${BOOTMODE} || mount -o bind /dev/urandom /dev/random
! is_mounted /system && mount -o rw /system 2>/dev/null ! is_mounted /system && mount -o rw /system
if [ ! -f /system/build.prop ]; then if [ ! -f /system/build.prop ]; then
SYSTEMBLOCK=$(find /dev/block -iname system${SLOT} | head -n 1) SYSTEMBLOCK=$(find /dev/block -iname system${SLOT} | head -n 1)
mount -t ext4 -o rw ${SYSTEMBLOCK} /system mount -t ext4 -o rw ${SYSTEMBLOCK} /system
fi fi
[ -f /system/build.prop ] || is_mounted /system || error "failed to mount /system" [ -f /system/build.prop ] || is_mounted /system || error "failed to mount /system (unsupported A/B device?)"
if [ -f /system/init ]; then if [ -f /system/init ]; then
mkdir /system_root 2>/dev/null mkdir /system_root 2>/dev/null