summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--01-memdisk.rules1
-rw-r--r--install/memdisk1
2 files changed, 2 insertions, 0 deletions
diff --git a/01-memdisk.rules b/01-memdisk.rules
new file mode 100644
index 0000000..1d5e292
--- /dev/null
+++ b/01-memdisk.rules
@@ -0,0 +1 @@
+ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="mtdblock*", ATTRS{name}=="memdisk", ATTRS{type}=="ram", SYMLINK+="memdisk"
diff --git a/install/memdisk b/install/memdisk
index 9c0ce16..7afb068 100644
--- a/install/memdisk
+++ b/install/memdisk
@@ -6,6 +6,7 @@ install ()
BINARIES="/usr/bin/memdiskfind"
FILES=""
SCRIPT="memdisk"
+ add_file /lib/initcpio/01-memdisk.rules /lib/udev/rules.d/01-memdisk.rules
}
help ()