PiDP-8/I SoftwareCheck-in [348a62931c]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Merged usb-floppy down to trunk
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 348a62931c5aefd689ec7ec46258ccfc11a3208729051cd1236d9981fe01b83e
User & Date: tangent 2019-10-05 11:17:55
Context
2019-10-05
11:27
Merged pidp8i-tmux down to trunk check-in: be3a3d9bd0 user: tangent tags: trunk
11:17
Merged usb-floppy down to trunk check-in: 348a62931c user: tangent tags: trunk
2019-10-04
16:38
Added udev rules to allow mounting media from disks on USB floppy drives. Closed-Leaf check-in: b33153775e user: ryan tags: usb-floppy
2019-09-22
08:48
Added "bsdmake" to the list of "make" flavors checked for by tools/mmake. The PiDP-8/I build system won't build with BSD make, but these scripts may be used in other projects, and BSD make does understand the -j option. check-in: eec38b61e1 user: tangent tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to etc/udev.rules.



1
2
















KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="add",    RUN+="/bin/systemctl start usb-mount@%k.service"
KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/systemctl stop  usb-mount@%k.service"














>
>


>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### USB hard drives / thumb drives

KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="add",    RUN+="/bin/systemctl start usb-mount@%k.service"
KERNEL=="sd[a-z][0-9]", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/systemctl stop  usb-mount@%k.service"

### USB floppy drives

# Detect a USB add with floppy disk already inserted, or a floppy disk
# insertion on an existing USB drive       
KERNEL=="sd[a-z]", SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="08", ATTRS{bInterfaceSubClass}=="04", \
  ACTION=="add|change", ENV{ID_FS_USAGE}=="filesystem" RUN+="/bin/systemctl start usb-mount@%k.service"
# Detect a floppy disk ejection
KERNEL=="sd[a-z]", SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="08", ATTRS{bInterfaceSubClass}=="04", \
  ACTION=="change", ENV{ID_FS_USAGE}=="", RUN+="/bin/systemctl stop usb-mount@%k.service"
# Detect a USB removal (floppy disk may or may not be inserted, but the
# service is idempotent)
KERNEL=="sd[a-z]", SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="08", ATTRS{bInterfaceSubClass}=="04", \
  ACTION=="remove", RUN+="/bin/systemctl stop usb-mount@%k.service"