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:
parent
b4ddea1904
commit
6fcca4d278
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user