๐Ÿ“ฆ mmzx / odrive_locker

Locks optical drive, prevents hardware triggered ejection of cd/dvd tray.

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ The Unlicense
๐Ÿ“ฅ Clone https://github.com/mmzx/odrive_locker.git
HTTPS git clone https://github.com/mmzx/odrive_locker.git
SSH git clone git@github.com:mmzx/odrive_locker.git
CLI gh repo clone mmzx/odrive_locker
mmzx mmzx Update README.md b51c6cb 8 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“„ 60-cdrom_id.rules
๐Ÿ“„ cdioctl.c
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ README.md

odrive_locker

Locks optical drive, prevents hardware triggered ejection of cd/dvd tray on Linux.

Configuration

Uncommenting the line

#ENV{DISKEJECTREQUEST}=="?*", RUN+="cdromid --eject-media $devnode", GOTO="cdromend"

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

Compiling / building

gcc cdioctl.c -o cdioctl && ./cdioctl