# sd-mount **Repository Path**: Liu-sgr/sd-mount ## Basic Information - **Project Name**: sd-mount - **Description**: SD卡自动挂载 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-15 - **Last Updated**: 2025-10-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SD卡 1. 默认rules规则只支持`KERNEL=="mmcblk1p[0-9]*"` ```shell KERNEL=="mmcblk1p[0-9]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/bin/systemctl start sd-mount@%k.service" KERNEL=="mmcblk1p[0-9]*", SUBSYSTEM=="block", ACTION=="remove", RUN+="/bin/systemctl stop sd-mount@%k.service" ``` 2. 需要支持所以SD卡需修改rules ```shell KERNEL=="mmcblk[0-9]p[0-9]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/bin/systemctl start sd-mount@%k.service" KERNEL=="mmcblk[0-9]p[0-9]*", SUBSYSTEM=="block", ACTION=="remove", RUN+="/bin/systemctl stop sd-mount@%k.service" ```