ORS Make mount/unmount system mount system_root on SAR
Change-Id: Ibf8d4d61e6cbb132786f5f9aa23ec91b49bcab89
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index 1de0870..6d76298 100755
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -301,6 +301,8 @@
strcat(mount, value);
} else
strcpy(mount, value);
+ if (!strcmp(mount, "/system"))
+ strcpy(mount, PartitionManager.Get_Android_Root_Path().c_str());
if (PartitionManager.Mount_By_Path(mount, true))
gui_msg(Msg("mounted=Mounted '{1}'")(mount));
} else if (strcmp(command, "unmount") == 0 || strcmp(command, "umount") == 0) {
@@ -311,6 +313,8 @@
strcat(mount, value);
} else
strcpy(mount, value);
+ if (!strcmp(mount, "/system"))
+ strcpy(mount, PartitionManager.Get_Android_Root_Path().c_str());
if (PartitionManager.UnMount_By_Path(mount, true))
gui_msg(Msg("unmounted=Unounted '{1}'")(mount));
} else if (strcmp(command, "set") == 0) {