linvdr:~# mylinvdr.sh -miso -oshell -vfull + echo 'Debugmode: 0' Debugmode: 0 + getopts :m:v:o:b:e:h: opt + debug 2 'functions defined' + '[' 2 == 0 ']' + '[' -e /etc/vdr/plugins/mylinvdr.conf ']' + . /etc/vdr/plugins/mylinvdr.conf ++ VERSION=0.5b-build3 ++ LANGUAGE=de_DE ++ ISOPATH=/pub/export ++ ISOFILE=mylinvdr-0.7.iso ++ TARPATH=/pub/export ++ TARFILE=mylinvdr-0.7.tar.bz2 ++ TMPDIR=/pub/export ++ MOUNTPATH=/mnt/dvd ++ BURNDEVICE=/dev/burner ++ CD_BURN_DEVICE=ATA:1,1,0 ++ CD_BURN_BURNFREE=driveropts=burnfree ++ CD_BURN_SPEED=4 ++ CD_BURN_EJECT=-eject ++ BOOTISO=/pub/export/bootiso ++ SLEEPTIME=3 ++ LOGFILE=/tmp/mylinvdr.log ++ ERRLOGFILE=/tmp/mylinvdr_error.log ++ EXCLUDEDIRS=/opt/tvmovie2vdr-0.5.4/downloadfiles/* /opt/tvmovie2vdr-0.5.4/dow nloadupdatefiles/* ++ EXCLUDEFILES= ++ INCLUDEDIRS= ++ INCLUDEFILES= ++ SAVESTRUCTURE=/data /example/+ ++ PRIORITY=-19 ++ SVDRPSEND=/usr/bin/svdrpsend.pl ++ TAR=/bin/tar ++ NICE=/usr/bin/nice ++ FIND=/usr/bin/find ++ MKISOFS=/usr/bin/mkisofs ++ CDRECORD=/usr/bin/cdrecord ++ DVDRWFORMAT=/usr/bin/dvd+rw-format ++ GROWISOFS=/usr/bin/growisofs + debug 2 'config loaded' + '[' 2 == 0 ']' + cleartmp + rm '/.mylinvdr*' rm: cannot remove `/.mylinvdr*': No such file or directory + message 'running mylinvdr.sh version 0.5b-build3' + echo 'running mylinvdr.sh version 0.5b-build3' running mylinvdr.sh version 0.5b-build3 + echo 'running mylinvdr.sh version 0.5b-build3' + declare -x MODE=iso + declare -x OUTPUT=shell + declare -x BURN=0 + declare -x DELETE=0 + declare -x BLANK=no + declare -x DEBUG=0 + declare -x SLEEPTIME=3 + declare -x LOGFILE=/tmp/mylinvdr.log + declare -x ERRLOGFILE=/tmp/mylinvdr_error.log + declare -x LANGUAGE=de_DE + declare -x APPEND=no + TMP=/tmp + INCLUDEDIRS=/ + SAVESTRUCTURE=/pub/export /pub/mp3 /pub/mplayer /pub/images /pub/web /vtx /pro c /tmp /sysfs /data /example/+ + INCLUDEFILES=/video0/vdr-burn/.nodelete + EXCLUDEDIRS=/video* /opt/tvmovie2vdr-0.5.4/downloadfiles/* /opt/tvmovie2vdr-0. 5.4/downloadupdatefiles/* + EXCLUDEFILES=/var/vm/swapfile + TAR=/bin/tar + MKISOFS=/usr/bin/mkisofs + CDRECORD=/usr/bin/cdrecord + GROWISOFS=/usr/bin/growisofs + DVDRWFORMAT=/usr/bin/dvd+rw-format + SVDRPSEND=/usr/bin/svdrpsend.pl + debug 2 'Variables set to default if not defined yet' + '[' 2 == 0 ']' + debug 2 'OUTPUT: shell' + '[' 2 == 0 ']' + debug 2 'BURN: 0' + '[' 2 == 0 ']' + debug 2 'DELETE: 0' + '[' 2 == 0 ']' + debug 2 'BLANK: no' + '[' 2 == 0 ']' + debug 2 'MODE: iso' + '[' 2 == 0 ']' + '[' -e /etc/vdr/plugins/mylinvdr/de_DE.lang ']' + . /etc/vdr/plugins/mylinvdr/de_DE.lang ++ LANG_OUTPUT_MODE_ISO=MyLinVDR, Version 0.5b-build3, nur ISO erstellen ++ LANG_OUTPUT_MODE_CD=MyLinVDR, Version 0.5b-build3, ISO erstellen & CD brennen ++ LANG_OUTPUT_MODE_DVD=MyLinVDR, Version 0.5b-build3, ISO erstellen & DVD brenn en ++ LANG_OUTPUT_ISO_CREATE=Ein neues mylinvdr-0.7.iso File wird erstellt ++ LANG_OUTPUT_NEED_ORIG_CD=Bitte Original-LinVDR-CD einlegen & Taste druecken ++ LANG_OUTPUT_NOT_ORIG_CD=Das ist nicht die Original LinVDR-CD. Bitte Original- LinVDR-CD einlegen & Taste druecken ++ LANG_OUTPUT_CHANGE_DISC=Original-LinVDR-CD entnehmen, neue Disc einlegen & Ta ste druecken ++ LANG_OUTPUT_CREATE_FILELIST=Die Fileliste fuer das Archiv wird erstellt ++ LANG_OUTPUT_CREATE_TAR=Ein neues linvdr-07 tar-Archiv wird erstellt ++ LANG_OUTPUT_CREATE_ISO=Bitte warten, ISO-Image wird erstellt ++ LANG_OUTPUT_ISO_CREATED=Das ISO wurde erstellt und in /pub/export abgelegt ++ LANG_OUTPUT_TAR_CREATED=Das tar-Archiv wurde erstellt und in /pub/export abge legt ++ LANG_OUTPUT_BURN_COMPLETE_IMAGE_DELETED=MyLinVDR-CD ist fertig. Temp-Daten ge loescht ++ LANG_OUTPUT_BURN_COMPLETE=Die neue MyLinVDR-CD ist fertig ++ LANG_OUTPUT_BLANK_RW=Die RW-Disk wird jetzt geloescht ++ LANG_OUTPUT_BURN_ISO=Das ISO-Image wird nun gebrannt ++ LANG_OUTPUT_NO_BLANK=RW-Disk wird nicht geloescht ++ LANG_OUTPUT_ISO_PRESENT=ISO mit diesem Namen existiert, verschiebe nach mylin vdr-0.7.iso.bak ++ LANG_ERROR_BURN=Fehler beim Brennen des Image. Bearbeitung abgebrochen ++ LANG_ERROR_BLANK=Fehler beim Formatieren der RW-Disc. Bearbeitung abgebrochen ++ LANG_ERROR_CREATE_ISO=Fehler beim Erstellen des ISO-Image. Temp-Daten werden geloescht ++ LANG_ERROR_CREATE_TAR=Fehler beim Erstellen des Tar-Archivs. Bearbeitung abge brochen + '[' xno == xno ']' + clearlog + echo '' + echo '' + cleartmp + rm /tmp/.mylinvdr.exclude.tar /tmp/.mylinvdr.include.tar + debug 2 'language file loaded' + '[' 2 == 0 ']' + debug 2 'start backup' + '[' 2 == 0 ']' + message 'Ein neues mylinvdr-0.7.iso File wird erstellt' + echo 'Ein neues mylinvdr-0.7.iso File wird erstellt' Ein neues mylinvdr-0.7.iso File wird erstellt + echo 'Ein neues mylinvdr-0.7.iso File wird erstellt' + '[' '!' -e /pub/export/bootiso/LinVDR ']' + debug 2 'copy LinVDR files from CD' + '[' 2 == 0 ']' + umount /mnt/dvd umount: /mnt/dvd: Invalid argument + eject /dev/burner + mkdir -p /pub/export/bootiso + message 'Bitte Original-LinVDR-CD einlegen & Taste druecken' + echo 'Bitte Original-LinVDR-CD einlegen & Taste druecken' Bitte Original-LinVDR-CD einlegen & Taste druecken + echo 'Bitte Original-LinVDR-CD einlegen & Taste druecken' + sleep 10 + mount /mnt/dvd + MOUNTOK=0 + debug 2 'MOUNTOK: 0' + '[' 2 == 0 ']' ++ test -d /mnt/dvd/LinVDR/ ++ echo 0 + ISLINVDRCD=0 + debug 2 'LinVDR CD?: 0' + '[' 2 == 0 ']' + '[' '!' 0 -eq 0 ']' + debug 2 'copy files...' + '[' 2 == 0 ']' + cp -ar /mnt/dvd/isolinux /pub/export/bootiso + cp -ar /mnt/dvd/LinVDR /pub/export/bootiso + cp /etc/vdr/plugins/mylinvdr.message.txt /pub/export/bootiso/isolinux/ + umount /mnt/dvd + eject /dev/burner + message 'Original-LinVDR-CD entnehmen, neue Disc einlegen & Taste druecken' + echo 'Original-LinVDR-CD entnehmen, neue Disc einlegen & Taste druecken' Original-LinVDR-CD entnehmen, neue Disc einlegen & Taste druecken + echo 'Original-LinVDR-CD entnehmen, neue Disc einlegen & Taste druecken' + debug 2 'copy new installer image' + '[' 2 == 0 ']' + cp /etc/vdr/plugins/mylinvdr/initrdfs.gz /pub/export/bootiso/LinVDR/boot/ + '[' -e /pub/export/bootiso/LinVDR/mylinvdr.tar.bz2 ']' + '[' -e /pub/export/bootiso/LinVDR/create.dir ']' + '[' -e /pub/export/bootiso/LinVDR/create.link ']' + '[' -e /pub/export/mylinvdr-0.7.tar.bz2 ']' + '[' -e /tmp/mylinvdr.tar.bz2 ']' + debug 2 'delete /tmp/mylinvdr.tar.bz2' + '[' 2 == 0 ']' + rm /tmp/mylinvdr.tar.bz2 + debug 2 'Add EXCLUDEDIRS (/video* /opt/tvmovie2vdr-0.5.4/downloadfiles/* /opt/ tvmovie2vdr-0.5.4/downloadupdatefiles/*) and SAVESTRUCTURE (/pub/export /pub/mp3 /pub/mplayer /pub/images /pub/web /vtx /proc /tmp /sysfs /data /example/+) to E XCLUDE' + '[' 2 == 0 ']' + '[' -e /video0 ']' + debug 2 'File '\''/video0'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /video0 + '[' -e '/opt/tvmovie2vdr-0.5.4/downloadfiles/*' ']' + debug 2 'File '\''/opt/tvmovie2vdr-0.5.4/downloadfiles/*'\'' does not exist. R emoving from EXCLUDE' + '[' 2 == 0 ']' + '[' -e '/opt/tvmovie2vdr-0.5.4/downloadupdatefiles/*' ']' + debug 2 'File '\''/opt/tvmovie2vdr-0.5.4/downloadupdatefiles/*'\'' does not ex ist. Removing from EXCLUDE' + '[' 2 == 0 ']' + '[' -e /var/vm/swapfile ']' + debug 2 'File '\''/var/vm/swapfile'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /var/vm/swapfile + '[' -e /pub/export ']' + debug 2 'File '\''/pub/export'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /pub/export + '[' -e /pub/mp3 ']' + debug 2 'File '\''/pub/mp3'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /pub/mp3 + '[' -e /pub/mplayer ']' + debug 2 'File '\''/pub/mplayer'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /pub/mplayer + '[' -e /pub/images ']' + debug 2 'File '\''/pub/images'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /pub/images + '[' -e /pub/web ']' + debug 2 'File '\''/pub/web'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /pub/web + '[' -e /vtx ']' + debug 2 'File '\''/vtx'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /vtx + '[' -e /proc ']' + debug 2 'File '\''/proc'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /proc + '[' -e /tmp ']' + debug 2 'File '\''/tmp'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /tmp + '[' -e /sysfs ']' + debug 2 'File '\''/sysfs'\'' exists and will be excluded' + '[' 2 == 0 ']' + echo /sysfs + '[' -e /data ']' + debug 2 'File '\''/data'\'' does not exist. Removing from EXCLUDE' + '[' 2 == 0 ']' + '[' -e /example/+ ']' + debug 2 'File '\''/example/+'\'' does not exist. Removing from EXCLUDE' + '[' 2 == 0 ']' + debug 2 'Add SAVESTRUCTURE (/pub/export /pub/mp3 /pub/mplayer /pub/images /pub /web /vtx /proc /tmp /sysfs /data /example/+) to create.dir and Links to create. link' + '[' 2 == 0 ']' + echo /pub/export + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /pub/export ']' + '[' -d /pub/export ']' + '[' x/pub/export == x/ ']' + echo /pub/export + debug 2 'Directory '\''/pub/export'\'' exists and will be created at installat ion' + '[' 2 == 0 ']' + echo /pub/mp3 + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /pub/mp3 ']' + '[' -d /pub/mp3 ']' + '[' x/pub/mp3 == x/ ']' + echo /pub/mp3 + debug 2 'Directory '\''/pub/mp3'\'' exists and will be created at installation ' + '[' 2 == 0 ']' + echo /pub/mplayer + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /pub/mplayer ']' + '[' -d /pub/mplayer ']' + '[' x/pub/mplayer == x/ ']' + echo /pub/mplayer + debug 2 'Directory '\''/pub/mplayer'\'' exists and will be created at installa tion' + '[' 2 == 0 ']' + echo /pub/images + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /pub/images ']' + '[' -d /pub/images ']' + '[' x/pub/images == x/ ']' + echo /pub/images + debug 2 'Directory '\''/pub/images'\'' exists and will be created at installat ion' + '[' 2 == 0 ']' + echo /pub/web + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /pub/web ']' + '[' -d /pub/web ']' + '[' x/pub/web == x/ ']' + echo /pub/web + debug 2 'Directory '\''/pub/web'\'' exists and will be created at installation ' + '[' 2 == 0 ']' + echo /vtx + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /vtx ']' ++ ls -l /vtx ++ awk '{ print $9 " " $11 }' + LINK=/vtx /ramdisk/vtx ++ echo /vtx /ramdisk/vtx ++ awk '{ print $2 }' + BASE=/ramdisk/vtx ++ echo /vtx /ramdisk/vtx ++ awk '{ print $1 }' + LINK=/vtx ++ echo /ramdisk/vtx ++ egrep '^/' + '[' /ramdisk/vtx ']' + echo '/ramdisk/vtx|/vtx' + debug 2 'Link '\''/vtx'\'' exists and will be created at installation' + '[' 2 == 0 ']' + grep '\+' + echo /proc + '[' 1 -eq 0 ']' + '[' -h /proc ']' + '[' -d /proc ']' + '[' x/proc == x/ ']' + echo /proc + debug 2 'Directory '\''/proc'\'' exists and will be created at installation' + '[' 2 == 0 ']' + echo /tmp + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /tmp ']' + '[' -d /tmp ']' + '[' x/tmp == x/ ']' + echo /tmp + debug 2 'Directory '\''/tmp'\'' exists and will be created at installation' + '[' 2 == 0 ']' + echo /sysfs + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /sysfs ']' + '[' -d /sysfs ']' + '[' x/sysfs == x/ ']' + echo /sysfs + debug 2 'Directory '\''/sysfs'\'' exists and will be created at installation' + '[' 2 == 0 ']' + echo /data + grep '\+' + '[' 1 -eq 0 ']' + '[' -h /data ']' + '[' -d /data ']' + debug 2 'Directory '\''/data'\'' does not exist. Removing from SAVESTRUCTURE' + '[' 2 == 0 ']' + echo /example/+ + grep '\+' + '[' 0 -eq 0 ']' ++ echo /example/+ ++ sed 's/\/+//' + dir=/example + '[' -d /example ']' + debug 2 'Directory '\''/example'\'' does not exist. Removing from SAVESTRUCTRU E' + '[' 2 == 0 ']' + debug 2 'Videodir: /video0' + '[' 2 == 0 ']' + '[' -h /video0 ']' + '[' -d /video0 ']' + echo /video0 + debug 2 'Add INCLUDEFILES (/video0/vdr-burn/.nodelete ) and INCLUDEDIRS (/ ) t o INCLUDE' + '[' 2 == 0 ']' + '[' -e /video0/vdr-burn/.nodelete ']' + debug 2 'File '\''/video0/vdr-burn/.nodelete'\'' exists and will be tar-ed' + '[' 2 == 0 ']' + echo /video0/vdr-burn/.nodelete + '[' -e / ']' + debug 2 'File '\''/'\'' exists and will be tar-ed' + '[' 2 == 0 ']' + echo / + message 'Ein neues linvdr-07 tar-Archiv wird erstellt' + echo 'Ein neues linvdr-07 tar-Archiv wird erstellt' Ein neues linvdr-07 tar-Archiv wird erstellt + echo 'Ein neues linvdr-07 tar-Archiv wird erstellt' + TARCMD=/usr/bin/nice -19 /bin/tar cjvplf /tmp/mylinvdr.tar.bz2 --files-from /t mp/.mylinvdr.include.tar --exclude-from /tmp/.mylinvdr.exclude.tar + debug 2 'tar: /usr/bin/nice -19 /bin/tar cjvplf /tmp/mylinvdr.tar.bz2 --files- from /tmp/.mylinvdr.include.tar --exclude-from /tmp/.mylinvdr.exclude.tar' + '[' 2 == 0 ']' + eval /usr/bin/nice -19 /bin/tar cjvplf /tmp/mylinvdr.tar.bz2 --files-from /tmp /.mylinvdr.include.tar --exclude-from /tmp/.mylinvdr.exclude.tar