Difference between revisions of "Burnmark.sh"

From VDR Wiki
Jump to: navigation, search
m
m
Line 21: Line 21:
 
;;
 
;;
 
esac
 
esac
 
[[Category:Scripts]]
 
   
 
<!-- Link to german wiki page -->
 
<!-- Link to german wiki page -->

Revision as of 00:15, 1 December 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