blob: a7337cedd8537e3f34df000b9e710cadcb4e47d6 (
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
|
#!/bin/sh
#
# $Header: /var/cvsroot/gentoo-x86/media-tv/vdr-dvd-scripts/files/0.0.3/dvdchanger_writedvd.sh,v 1.1 2007/07/21 22:40:13 hd_brummy Exp $
#
# 04 Mar 2006; Joerg Bornkessel <hd_brummy@gentoo.org>
# addaptded to gentoo-vdr-scripts
if [[ -z ${EXECUTED_BY_VDR_BG} ]]; then
VDR_BG=/usr/share/vdr/bin/vdr-bg.sh
[[ -e ${VDR_BG} ]] || VDR_BG=/usr/lib/vdr/bin/vdr-bg.sh
exec "${VDR_BG}" "${0}" "${@}"
exit
fi
[[ -e /etc/conf.d/vdr.cd-dvd ]] && source /etc/conf.d/vdr.cd-dvd
ISO_FILE="${1// IMAGE/}"
#logger -t burnscript burn ${ISO_FILE} --
: ${VDR_DVDWRITER:=/dev/dvd}
[[ -e /etc/conf.d/vdr.dvdswitch ]] && source /etc/conf.d/vdr.dvdswitch
: ${DVDSWITCH_BURNSPEED:=0}
DVD_RECORDCMD="growisofs"
DVDPLUS_RECORD_OPTS="-use-the-force-luke=tty -speed=$DVDSWITCH_BURNSPEED -dvd-compat -Z"
unset SUDO_COMMAND
svdrpsend.pl -d localhost "MESG DVD burn initiated"
"$DVD_RECORDCMD" $DVDPLUS_RECORD_OPTS "$VDR_DVDWRITER"="${ISO_FILE}"
svdrpsend.pl -d localhost "MESG DVD burn completed"
|