add mount sdcard option

This commit is contained in:
Koushik K. Dutta 2010-02-21 21:29:10 -08:00
parent bcdd00359c
commit 1fa52ecdbf
3 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@ char* MENU_ITEMS[] = { "reboot system now",
"install zip from sdcard",
"backup",
"restore",
"mount sdcard",
NULL };
int device_toggle_display(volatile char* key_pressed, int key_code) {

View File

@ -449,6 +449,11 @@ prompt_and_wait()
case ITEM_RESTORE:
show_nandroid_restore_menu();
break;
case ITEM_MOUNT_SDCARD:
if (ensure_root_path_mounted("SDCARD:") != 0) {
LOGE ("Can't mount /sdcard\n");
}
break;
}
}
}

View File

@ -70,6 +70,7 @@ int device_wipe_data();
#define ITEM_INSTALL_ZIP 4
#define ITEM_BACKUP 5
#define ITEM_RESTORE 6
#define ITEM_MOUNT_SDCARD 7
// Header text to display above the main menu.
extern char* MENU_HEADERS[];