## WE DOESN'T CREATE A SPECIFIC SYMLINKS IF OUR FSTAB CONFIGURED THE LABELS ## USB STICK GRIS ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="0e2bd8c1-d14d-4bf9-bed9-a5e5acfd7b08", SYMLINK+="gris1", ENV{custom_rules}="notyet" ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="gris2", ENV{mount_point}="gris2", ENV{mount_cmd}="-L gris2", ENV{custom_rules}="add" ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="gris2", ENV{mount_point}="gris2", ENV{custom_rules}="remove" #ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="425a5f7d-d75c-4470-bd19-fc56b2724210", SYMLINK+="gris2" ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="B109-EE46", SYMLINK+="gris3", ENV{custom_rules}="notyet" ## TESTS #KERNEL=="sdb[123]", ENV{ID_SERIAL}=="USB_2.0_Flash_Disk_A000000000000233", SYMLINK+="gris_ker_env_ser" #KERNEL=="sdb[123]", ATTRS{serial}=="USB_2.0_Flash_Disk_A000000000000233", SYMLINK+="gris_ker_attrs_ser" #KERNEL=="sdb[123]", ENV{ID_SHORT_SERIAL}=="A000000000000233", SYMLINK+="gris_ker_env_shser" #KERNEL=="sdb[123]", ATTRS{short_serial}=="A000000000000233", SYMLINK+="gris_ker_attrs_shser" ## WESTERN DIGITAL ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="docus", ENV{mount_cmd}="-L docus", ENV{custom_rules}="add" #ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="f2574b18-3fa6-4649-9908-eaa8503cab33", SYMLINK+="wd1" ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="docus", ENV{custom_rules}="remove" ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="films", ENV{mount_cmd}="-L films", ENV{custom_rules}="add" #ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="08fea226-c5a5-49de-a8e7-bfc2a9975232", SYMLINK+="wd2" ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="films", ENV{custom_rules}="remove" ## MP3 PLAYER #ATTRS|ENV : "Samsung_YP-U1_0002F6916425CF08-0:0", SYMLINK+="mp3" ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="0467-FFC1", ENV{mount_point}="mp3", ENV{mount_cmd}="-U 0467-FFC1", ENV{custom_rules}="add" ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="0467-FFC1", ENV{mount_point}="mp3", ENV{custom_rules}="remove" ## INTEGRAL USB HD ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="integral", ENV{mount_point}="integral", ENV{mount_cmd}="-L integral", ENV{custom_rules}="add" ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_LABEL}=="integral", ENV{mount_point}="integral", ENV{custom_rules}="remove" #ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="d588d4d2-6904-4623-960c-707409bcb9c3", SYMLINK+="integral" ## UNKNOWN DEVICES ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd[b-z][1-9]", ENV{custom_rules}=="", RUN="mount /dev/%k /mnt/remusb", RUN+="/bin/mkdir /tmp/.incron.yug/%k" ## RUN THE FACTORIZED BABE ENV{custom_rules}=="add", ENV{mount_point}!="", RUN+="/bin/mkdir -p /mnt/$env{mount_point}" ENV{custom_rules}=="add", ENV{mount_cmd}!="", RUN+="/bin/mount $env{mount_cmd}" ENV{custom_rules}=="add", RUN+="/bin/mkdir /tmp/.incron.yug/%k" ENV{custom_rules}=="remove", ENV{mount_point}!="", RUN+="/bin/rmdir /mnt/$env{mount_point}" ENV{custom_rules}=="remove", RUN+="/bin/rmdir /tmp/.incron-device/%k"