- Enable GPIO 38 active-low card detect (cd-gpios) with bias-pull-up on sdhci@7864000 across all MSM8905/MSM8909 device trees and DTBs - Add sxmo_sdcard.sh and 88-bananarchy-sdcard.rules udev rules for automatic mounting at /media/sdcard on insertion and cleanup on removal - Integrate SD card mount, unmount/eject, and navigation into the GUI File Manager (files.so) and built-in dmenu SD Card menu (@menu:sdcard)
5 lines
459 B
Plaintext
5 lines
459 B
Plaintext
# Automatically mount and unmount removable microSD cards (mmcblk1) at /media/sdcard
|
|
SUBSYSTEM=="block", KERNEL=="mmcblk1p[1-9]*", ACTION=="add", RUN+="/usr/bin/sxmo_sdcard.sh automount add %k"
|
|
SUBSYSTEM=="block", KERNEL=="mmcblk1", ATTR{partition}!="1", ENV{ID_FS_USAGE}=="filesystem", ACTION=="add", RUN+="/usr/bin/sxmo_sdcard.sh automount add %k"
|
|
SUBSYSTEM=="block", KERNEL=="mmcblk1*", ACTION=="remove", RUN+="/usr/bin/sxmo_sdcard.sh automount remove %k"
|