From 15b482d49e642e21e983dba27a47b4fc2d8b90b4 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 11 Jan 2019 14:54:51 +0100 Subject: [PATCH] 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 --- tools/start_new_disc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tools/start_new_disc b/tools/start_new_disc index 21f412f0..0b64a7e8 100755 --- a/tools/start_new_disc +++ b/tools/start_new_disc @@ -199,7 +199,25 @@ if [ $DISKNUM = 1 ] ; then fi fi 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 if [ $NUM_ARCHES -gt 1 ]; then