Skip to content

Commit

Permalink
add the other known lun file path from 2.6.x kernel
Browse files Browse the repository at this point in the history
this should fix the USB Mass Storage mounting problem on firmwares
> than 3.14 (or 3.16...? don't know, as my device with 3.14 isn't affected)
  • Loading branch information
seadersn committed Apr 11, 2013
1 parent 351ce20 commit 212c7ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extendedcommands.c
Expand Up @@ -505,6 +505,8 @@ int control_usb_storage_for_lun(Volume* vol, bool enable) {
#ifdef TARGET_USE_CUSTOM_LUN_FILE_PATH
TARGET_USE_CUSTOM_LUN_FILE_PATH,
#endif
"/sys/devices/platform/fsl-tegra-udc/gadget/lun0/file",
"/sys/devices/platform/tegra-udc.0/gadget/lun0/file",
"/sys/devices/platform/usb_mass_storage/lun%d/file",
"/sys/class/android_usb/android0/f_mass_storage/lun/file",
"/sys/class/android_usb/android0/f_mass_storage/lun_ex/file",
Expand Down

0 comments on commit 212c7ce

Please sign in to comment.