32 lines
563 B
Plaintext
Executable File
32 lines
563 B
Plaintext
Executable File
|
|
set -x
|
|
|
|
. /etc/dvd-scripts.env
|
|
|
|
DVD_DIR=$1
|
|
FILES=$2
|
|
|
|
cd $DVD_DIR
|
|
|
|
echo "Movix DVD aus Dateien $DVD_DIR/$FILES erzeugen..."
|
|
|
|
#MAX_SIZE=4702989182
|
|
|
|
# DVD-Size 4,702,989,182
|
|
i#size=`du -sb "$DVD_DIR" | awk '{print $1}'`
|
|
#printf "size: %4d MB\n" `expr $size \/ 1024 \/ 1024`
|
|
#printf "size: %4d MB\n" `echo "$size/1024/1024;" | bc `
|
|
#if [ $size -gt $MAX_SIZE ]
|
|
#then
|
|
# printf "Zu Groß (max: %4d MB) !!!\n" `expr $MAX_SIZE \/ 1024 \/ 1024`
|
|
#lse
|
|
# growisofs -Z $DVD_DEVICE -R -J $DVD_DIR
|
|
#fi
|
|
|
|
mkmovixiso $FILES
|
|
ln -s movix.iso last.iso
|
|
|
|
sleep 1
|
|
echo Fertig.
|
|
eject
|