[mythtv-users] Eject DVD drive using remote's eject button

Adam Greenbaum lists at refinitive.com
Mon Jan 10 03:36:41 EST 2005


If you want the eject button to load the tray too you can call this
script from the config line of lircrc. I got it from the lineak mailing
list. It's not very pretty but does the job.


#!/bin/bash

START=`date +%s`
eject -t # Try closing first
END=`date +%s`

[ $START -eq $END ] && eject
# Too fast, it was already closed



More information about the mythtv-users mailing list