summaryrefslogtreecommitdiff
path: root/extras/floppy/60-floppy.rules
diff options
context:
space:
mode:
Diffstat (limited to 'extras/floppy/60-floppy.rules')
-rw-r--r--extras/floppy/60-floppy.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/floppy/60-floppy.rules b/extras/floppy/60-floppy.rules
new file mode 100644
index 0000000000..3123bb55fd
--- /dev/null
+++ b/extras/floppy/60-floppy.rules
@@ -0,0 +1,4 @@
+# do not edit this file, it will be overwritten on update
+
+SUBSYSTEM=="block", KERNEL=="fd[0-9]", ACTION=="add", ATTRS{cmos}=="?*", ENV{CMOS_TYPE}="$attr{cmos}", \
+ RUN+="create_floppy_devices -c -t $env{CMOS_TYPE} -m %M -M 0640 -G floppy $root/%k"