add mount sdcard option
This commit is contained in:
parent
bcdd00359c
commit
1fa52ecdbf
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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[];
|
||||
|
Loading…
Reference in New Issue
Block a user