Burnmark.sh

From VDR Wiki
Revision as of 00:15, 1 December 2004 by Monroe (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This script marks a recording for the burn-plugin by placing the file burnmark.vdr into the recordings directory.

#!/bin/sh
#
# burnmark.sh - v.0.1
#
# add this lines to your reccmds.conf:
# folgende zeilen in die reccmds.conf eintragen:
#
# Mark for DVD-Writer : /usr/local/bin/burnmark.sh -add
# Delete Mark         : /usr/local/bin/burnmark.sh -del

case "${1}" in
     -add)
        touch "${2}/burnmark.vdr"
        echo "The recording was marked..."
        echo ""
        echo "Please change now into the DVD burner menu, or mark further recordings."
        ;;
     -del)
        rm -f "${2}/burnmark.vdr"
        ;;
esac