Burnmark.sh

From VDR Wiki
Revision as of 00:15, 1 December 2004 by Monroe (talk | contribs)
Jump to: navigation, search

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