2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

fix in mount_partitions()

This commit is contained in:
Christopher Roy Bratusek 2020-10-09 20:37:23 +02:00
parent b4ddea1904
commit 6fcca4d278
4 changed files with 4 additions and 4 deletions

View File

@ -250,7 +250,7 @@ mount_partitions () {
mount -o bind /dev/urandom /dev/random
SYSTEM_AS_ROOT=$(grep_prop ro.build.ab_update /default.prop)
if [ -d /system_root -o ${SYSTEM_AS_ROOT} ]; then
if [ -e /system_root -o ${SYSTEM_AS_ROOT} ]; then
[ -L /system_root ] && mv /system_root /system_root_link
if [ ! -d /system_root ]; then
rm -rf /system_root

View File

@ -131,7 +131,7 @@ mount_partitions () {
mount -o bind /dev/urandom /dev/random
SYSTEM_AS_ROOT=$(grep_prop ro.build.ab_update /default.prop)
if [ -d /system_root -o ${SYSTEM_AS_ROOT} ]; then
if [ -e /system_root -o ${SYSTEM_AS_ROOT} ]; then
[ -L /system_root ] && mv /system_root /system_root_link
if [ ! -d /system_root ]; then
rm -rf /system_root

View File

@ -130,7 +130,7 @@ mount_partitions () {
mount -o bind /dev/urandom /dev/random
SYSTEM_AS_ROOT=$(grep_prop ro.build.ab_update /default.prop)
if [ -d /system_root -o ${SYSTEM_AS_ROOT} ]; then
if [ -e /system_root -o ${SYSTEM_AS_ROOT} ]; then
[ -L /system_root ] && mv /system_root /system_root_link
if [ ! -d /system_root ]; then
rm -rf /system_root

View File

@ -197,7 +197,7 @@ mount_partitions () {
mount -o bind /dev/urandom /dev/random
SYSTEM_AS_ROOT=$(grep_prop ro.build.ab_update /default.prop)
if [ -d /system_root -o ${SYSTEM_AS_ROOT} ]; then
if [ -e /system_root -o ${SYSTEM_AS_ROOT} ]; then
[ -L /system_root ] && mv /system_root /system_root_link
if [ ! -d /system_root ]; then
rm -rf /system_root