Skip to content

Commit

Permalink
Merge pull request #267 from schiffermtq/persistent-mtd
Browse files Browse the repository at this point in the history
rules: add mtd/by-name symlinks
  • Loading branch information
bbonev authored Oct 18, 2023
2 parents 9e7c4e7 + 944803d commit 7d10858
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rules/60-persistent-storage-mtd.rules
Original file line number Diff line number Diff line change
@@ -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"
1 change: 1 addition & 0 deletions rules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 7d10858

Please sign in to comment.