๐Ÿ“ฆ mmzx / odrive_locker

๐Ÿ“„ README.md ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13# odrive_locker
Locks optical drive, prevents hardware triggered ejection of cd/dvd tray on Linux.

## Configuration
Uncommenting the line

#ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"

in file */etc/udev/rules.d/60-cdrom_id.rules*, as attached.

## Compiling / building
gcc cdioctl.c -o cdioctl && ./cdioctl