[udev] mount hdd storage to /media/hdd using udev.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-core / udev / udev-182 / 99_vuplus.rules
index 9459ec7..b7e4a8a 100644 (file)
@@ -13,5 +13,5 @@ KERNEL=="fb[0-9]*",             SYMLINK+="fb/%n"
 KERNEL=="i2c-[0-9]*",           SYMLINK+="i2c/%n"
 KERNEL=="mtdblock[0-9]*",       SYMLINK+="mtdblock/%n"
 KERNEL=="tty[0-9]*",            SYMLINK+="vc/%n"
-ACTION=="add", KERNEL=="sda1", RUN+="/etc/udev/automount.sh sda1"
-ACTION=="remove", KERNEL=="sda1", RUN+="/etc/udev/autoumount.sh sda1"
+ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/etc/udev/automount.py %k"
+ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/etc/udev/autoumount.py %k"