Difference between revisions of "Burnmark.sh"

From VDR Wiki
Jump to: navigation, search
(initial)
 
m
Line 23: Line 23:
   
 
[[Category:Scripts]]
 
[[Category:Scripts]]
  +
  +
<!-- Link to german wiki page -->
  +
[[de:Burnmark.sh]]

Revision as of 23:20, 30 November 2004

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