Dvdswitch readdvd.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
Zeile 18: | Zeile 18: | ||
# $3 = original dvd-device | # $3 = original dvd-device | ||
− | rm -f | + | rm -f "$1/$2.iso" |
− | + | mkdir -p "$1/" | |
− | echo "dd if=$3 of= | + | |
+ | echo "dd if=$3 of=\"$1/$2.iso\" > /var/log/vdr/readdvd.log 2>&1" | at now | ||
</pre> | </pre> | ||
}} | }} | ||
[[Kategorie:Skripte]] | [[Kategorie:Skripte]] |
Version vom 26. April 2006, 08:25 Uhr
Skripts vom dvdswitch-plugin.
$PATH/dvdswitch_readdvd.sh
#!/bin/sh # # dvdswitch_readdvd.sh # # source: dvdselect-plugin # # This script will by called by the vdr-plugin dvdselect to copy a DVD to # the local drive. # # It gets the following parameters: # # $1 = directory for dvd's (see plugin configuration menu) # $2 = name of dvd # $3 = original dvd-device rm -f "$1/$2.iso" mkdir -p "$1/" echo "dd if=$3 of=\"$1/$2.iso\" > /var/log/vdr/readdvd.log 2>&1" | at now