summaryrefslogtreecommitdiff
blob: d297ba896b355fa2f0591dc69e8c9bc947d0757e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-burn/files/rc-addon-0.0.9.sh,v 1.1 2006/05/21 12:36:33 hd_brummy Exp $
#
# rc-addon-script for plugin burn
#

: ${BURN_DVDWRITER:=/dev/dvd}
: ${BURN_DATADIR:=/var/vdr/video}
: ${BURN_ISODIR:=/var/vdr/video/dvd-images}

plugin_pre_vdr_start() {

add_plugin_param "-d ${BURN_DATADIR}"

if [[ ! -f /usr/bin/burnmark.sh ]] ; then

  # works on burn-0.0.5
  if [[ ${BURN_CREATEONLY_ISO:=no} == "yes" ]] ; then
    add_plugin_param "-i ${BURN_ISODIR}"
  else
    add_plugin_param "-D ${BURN_DVDWRITER}"
  fi
  
else

  # works on >=burn-0.0.9
  add_plugin_param "-i ${BURN_ISODIR}"
  add_plugin_param "-D ${BURN_DVDWRITER}"

fi

}

# for compatibility
if [[ ${SCRIPT_API:-1} -lt 2 ]]; then
  plugin_pre_vdr_start
fi