Add rules to local.rules to call /etc/udev/scripts/mount.sh on insertion and removal of SD cards, to mount to /media/mmcblkXpY
Signed-off-by: Tom Rini <[email protected]> --- .../recipes-core/udev/udev/local.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-arago-distro/recipes-core/udev/udev/local.rules b/meta-arago-distro/recipes-core/udev/udev/local.rules index d0b0216..45c3a46 100644 --- a/meta-arago-distro/recipes-core/udev/udev/local.rules +++ b/meta-arago-distro/recipes-core/udev/udev/local.rules @@ -19,3 +19,6 @@ ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe # Create a symlink to any touchscreen input device SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0" +# Auto-mount any SD cards +ACTION=="add", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh" +ACTION=="remove", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh" -- 1.7.9.5 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
