move the sdcard symlinker into process_volumes

Change-Id: I863fbeadea8428c7809260522316c493a6ea33ea
This commit is contained in:
Koushik Dutta 2011-06-10 09:17:30 -07:00
parent 2e0964bed1
commit 94caefedb7
2 changed files with 5 additions and 5 deletions

View File

@ -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.

View File

@ -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);