summaryrefslogtreecommitdiff
path: root/recipes-core/udev/eudev/ubi.rules
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/udev/eudev/ubi.rules')
-rw-r--r--recipes-core/udev/eudev/ubi.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-core/udev/eudev/ubi.rules b/recipes-core/udev/eudev/ubi.rules
new file mode 100644
index 0000000..f681e27
--- /dev/null
+++ b/recipes-core/udev/eudev/ubi.rules
@@ -0,0 +1,7 @@
+SUBSYSTEM!="ubi", GOTO="ubi_end"
+# only ubi devices
+KERNEL!="ubi*", GOTO="ubi_end"
+
+SUBSYSTEM=="ubi", KERNEL=="ubi*_*", SYMLINK+="ubi_%s{name}"
+
+LABEL="ubi_end"