diff --git a/rules/60-persistent-storage-mtd.rules b/rules/60-persistent-storage-mtd.rules new file mode 100644 index 000000000..bcf93b9a0 --- /dev/null +++ b/rules/60-persistent-storage-mtd.rules @@ -0,0 +1,12 @@ +# do not edit this file, it will be overwritten on update + +# persistent storage links: /dev/mtd/by-name + +ACTION=="remove", GOTO="persistent_storage_mtd_end" +SUBSYSTEM!="mtd", GOTO="persistent_storage_mtd_end" +KERNEL!="mtd[0-9]*", GOTO="persistent_storage_mtd_end" +KERNEL=="mtd[0-9]*ro", GOTO="persistent_storage_mtd_end" + +ATTR{name}=="?*", SYMLINK+="mtd/by-name/$attr{name}" + +LABEL="persistent_storage_mtd_end" diff --git a/rules/Makefile.am b/rules/Makefile.am index fcef039fe..5f4993098 100644 --- a/rules/Makefile.am +++ b/rules/Makefile.am @@ -17,6 +17,7 @@ dist_udevrules_DATA = \ 60-input-id.rules \ 60-persistent-alsa.rules \ 60-persistent-input.rules \ + 60-persistent-storage-mtd.rules \ 60-persistent-storage-tape.rules \ 60-persistent-v4l.rules \ 60-sensor.rules \