40 lines
1.8 KiB
Diff
40 lines
1.8 KiB
Diff
diff -Nuar a/rules/60-persistent-storage-mtd.rules b/rules/60-persistent-storage-mtd.rules
|
|
--- a/rules/60-persistent-storage-mtd.rules 1970-01-01 02:00:00.000000000 +0200
|
|
+++ b/rules/60-persistent-storage-mtd.rules 2023-11-23 11:57:49.919787625 +0300
|
|
@@ -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 -Nuar a/rules/Makefile.am b/rules/Makefile.am
|
|
--- a/rules/Makefile.am 2023-10-05 20:20:45.000000000 +0300
|
|
+++ b/rules/Makefile.am 2023-11-23 11:58:24.830351183 +0300
|
|
@@ -17,6 +17,7 @@
|
|
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 \
|
|
diff -Nuar a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c
|
|
--- a/src/libudev/libudev-device.c 2023-10-05 20:20:45.000000000 +0300
|
|
+++ b/src/libudev/libudev-device.c 2023-11-23 11:56:14.162984749 +0300
|
|
@@ -533,7 +533,7 @@
|
|
}
|
|
}
|
|
} else if (startswith(property, "USEC_INITIALIZED=")) {
|
|
- udev_device_set_usec_initialized(udev_device, strtoull(&property[19], NULL, 10));
|
|
+ udev_device_set_usec_initialized(udev_device, strtoull(&property[17], NULL, 10));
|
|
} else if (startswith(property, "DRIVER=")) {
|
|
udev_device_set_driver(udev_device, &property[7]);
|
|
} else if (startswith(property, "ACTION=")) {
|