summaryrefslogtreecommitdiff
path: root/src/floppy/60-floppy.rules
diff options
context:
space:
mode:
Diffstat (limited to 'src/floppy/60-floppy.rules')
-rw-r--r--src/floppy/60-floppy.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/floppy/60-floppy.rules b/src/floppy/60-floppy.rules
new file mode 100644
index 0000000000..53e4a9e59a
--- /dev/null
+++ b/src/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 0660 -G floppy $root/%k"