diff options
author | Thomas Bächler <thomas@archlinux.org> | 2010-06-23 01:02:18 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-06-23 01:02:18 +0200 |
commit | e64bde8c514765e5f76cdff504d9a73f6945479f (patch) | |
tree | ba888270a4605eea28c53bf4bc1ce6c51f26535c | |
parent | 1ef7f115459c49cb1d0669544d5af39930e315ea (diff) | |
download | mkinitcpio-e64bde8c514765e5f76cdff504d9a73f6945479f.tar.gz mkinitcpio-e64bde8c514765e5f76cdff504d9a73f6945479f.tar.xz |
memdisk: Add udev rule
This rule creates /dev/memdisk if a memdisk has been found.
-rw-r--r-- | 01-memdisk.rules | 1 | ||||
-rw-r--r-- | install/memdisk | 1 |
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 () |