diff --git a/extendedcommands.c b/extendedcommands.c index 9439739..b32ca0b 100644 --- a/extendedcommands.c +++ b/extendedcommands.c @@ -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. diff --git a/recovery.c b/recovery.c index 51b5366..52d3879 100644 --- a/recovery.c +++ b/recovery.c @@ -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);