Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dvd_drive_status [2014/02/17 03:59] – beandog | dvd_drive_status [2018/03/28 05:38] – beandog | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== dvd_drive_status ====== | ====== dvd_drive_status ====== | ||
- | * [[https:// | + | |
+ | * [[https:// | ||
+ | |||
+ | | ||
This program is a successor to the small program [[trayopen]] (which also inspired this one). '' | This program is a successor to the small program [[trayopen]] (which also inspired this one). '' | ||
- | To build, just download the [[https:// | + | To build, just download the [[https:// |
< | < | ||
- | $ wget https:// | + | $ wget https:// |
$ gcc -o dvd_drive_status dvd_drive_status.c | $ gcc -o dvd_drive_status dvd_drive_status.c | ||
</ | </ | ||
+ | |||
+ | It has support on and off for *BSD systems. I like to work on it, and then I don't. The kernels are different, and have different tray status checks and so on. I'm limited by that. | ||
=== Context === | === Context === | ||
Line 55: | Line 60: | ||
=== Scripting === | === Scripting === | ||
- | The [[https:// | + | The [[https:// |
Here's the exit codes: | Here's the exit codes: | ||
Line 71: | Line 76: | ||
If you just want to see if the **tray is closed and has media**, that would be exit code 4. | If you just want to see if the **tray is closed and has media**, that would be exit code 4. | ||
+ | |||
+ | === Sample Script === | ||
Here's a really simple shell script that you could use to wait until the device is ready to access: | Here's a really simple shell script that you could use to wait until the device is ready to access: |