move the sdcard symlinker into process_volumes
Change-Id: I863fbeadea8428c7809260522316c493a6ea33ea
This commit is contained in:
parent
2e0964bed1
commit
94caefedb7
@ -1105,7 +1105,11 @@ int bml_check_volume(const char *path) {
|
||||
|
||||
void process_volumes() {
|
||||
create_fstab();
|
||||
|
||||
if (volume_for_path("/sdcard") == NULL) {
|
||||
rmdir("/sdcard");
|
||||
symlink("/data/media", "/sdcard");
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
// dead code.
|
||||
|
@ -795,10 +795,6 @@ main(int argc, char **argv) {
|
||||
return busybox_driver(argc, argv);
|
||||
}
|
||||
__system("/sbin/postrecoveryboot.sh");
|
||||
if (volume_for_path("/sdcard") == NULL) {
|
||||
rmdir("/sdcard");
|
||||
symlink("/data/media", "/sdcard");
|
||||
}
|
||||
|
||||
int is_user_initiated_recovery = 0;
|
||||
time_t start = time(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user