gjdwebserver-overlay/app-mobilephone/pinephone-meta/files/99-automount-sd.rules

4 lines
229 B
Plaintext
Executable File

## Automatically mount the SD card when inserted
ACTION=="add", KERNEL=="mmcblk[0-2]p*", ENV{ID_FS_USAGE}=="filesystem", RUN{program}+="/usr/bin/systemd-mount --no-block --automount=yes --timeout-idle-sec=1s $devnode /media/%k"