start_new_disc: correct disk/cd-type for all types

Thanks to Wolfgang Schweer for the patch. See/Closes: #846006

Signed-off-by: Holger Levsen <holger@layer-acht.org>
This commit is contained in:
Holger Levsen 2019-01-11 14:54:51 +01:00
parent 93f26da4d9
commit 15b482d49e
1 changed files with 19 additions and 1 deletions

View File

@ -199,7 +199,25 @@ if [ $DISKNUM = 1 ] ; then
fi fi
fi fi
else else
echo "not_complete" > $CDDIR/.disk/cd_type if [ $DISKTYPE = DVD ] || [ $DISKTYPE = DLDVD ]; then
if [ "$MAXCDS"x = "1"x ]; then
echo "dvd/single/not_complete" > $CDDIR/.disk/cd_type
else
echo "dvd/not_complete" > $CDDIR/.disk/cd_type
fi
elif [ $DISKTYPE = BD ] || [ $DISKTYPE = DLBD ]; then
if [ "$MAXCDS"x = "1"x ]; then
echo "bluray/single/not_complete" > $CDDIR/.disk/cd_type
else
echo "bluray/not_complete" > $CDDIR/.disk/cd_type
fi
else
if [ "$MAXCDS"x = "1"x ]; then
echo "cd/single/not_complete" > $CDDIR/.disk/cd_type
else
echo "cd/not_complete" > $CDDIR/.disk/cd_type
fi
fi
fi fi
if [ $NUM_ARCHES -gt 1 ]; then if [ $NUM_ARCHES -gt 1 ]; then