bagel/root-15051# pkg version -n makemkv
makemkv-1.15.2 ?
bagel/root-15052# sh -x /usr/local/sbin/update-makemkv-drives
+ trap 'rm -fr $TMPFIFODIR' EXIT
+ mktemp -d
+ TMPFIFODIR=/tmp/tmp.UrzS6Wht
+ mkfifo /tmp/tmp.UrzS6Wht/campipe
+ SGDEVS=''
+ rm -fr /compat/linux/etc/makemkv/devices
+ rm -fr /compat/linux/etc/makemkv/drivers
+ camcontrol devlist
+ grep -E '[(,]cd[0-9]+[,)]'
+ read line
+ echo '<HL-DT-ST' BD-RE WH16NS40 '1.04>' at scbus1 target 0 lun 0 '(cd0,sg0,pass1)'
+ grep -Eo 'scbus[0-9]+'
+ sed -e s:scbus::
+ SCBUS=1
+ echo '<HL-DT-ST' BD-RE WH16NS40 '1.04>' at scbus1 target 0 lun 0 '(cd0,sg0,pass1)'
+ grep -Eo 'target [0-9]+'
+ sed -e 's:target ::'
+ TARGET=0
+ echo '<HL-DT-ST' BD-RE WH16NS40 '1.04>' at scbus1 target 0 lun 0 '(cd0,sg0,pass1)'
+ grep -Eo 'lun [0-9]+'
+ sed -e 's:lun ::'
+ LUN=0
+ echo '<HL-DT-ST' BD-RE WH16NS40 '1.04>' at scbus1 target 0 lun 0 '(cd0,sg0,pass1)'
+ grep -Eo '(.*)'
+ grep -Eo 'sg[0-9]+'
+ SGDEV=sg0
+ [ -n 1 -a -n 0 -a -n 0 ]
+ [ -z sg0 ]
+ SGDEVS=' /dev/sg0'
+ LOC=1:0:0:0
+ mkdir -p /compat/linux/etc/makemkv/devices/1:0:0:0/scsi_generic/sg0
+ mkdir -p /compat/linux/etc/makemkv/drivers/sr
+ ln -s ../../devices/1:0:0:0 /compat/linux/etc/makemkv/drivers/sr/1:0:0:0
+ echo 5
+ read line
+ [ -z ' /dev/sg0' ]
+ echo devices linked: /dev/sg0.
devices linked: /dev/sg0.
+ echo 'When your configuration changes, re-run this script (update-makemkv-drives).'
When your configuration changes, re-run this script (update-makemkv-drives).
+ rm -fr /tmp/tmp.UrzS6Wht
bagel/root-15053# makemkvcon --debug info disc:0
MakeMKV v1.15.2 linux(x64-release) started
Debug logging enabled, log will be saved as file:///root/MakeMKV_log.txt
DEBUG: Code 2 at AFr;N=c'Vq_*FY"FPD1 748':121261428
DEBUG: Code 2551185736 at ]Loc]gZel^[tu~>H:121263406
DEBUG: Code 0 at ]Loc]gZel^[tu~>H:29395356
DEBUG: Code 0 at .v}(>HM5#}/{Xeg:121262555
DEBUG: Code 0 at 7X1mAB=O_p?W?AYS:121275596
The program can't find any usable optical drives.
DEBUG: Code 0 at M@0"J\VE,$Wf#w\syMbTI:121264786
DEBUG: Code 233 at sgki5HEq7AZWSJ2uR8hCc8Mj:0
Failed to open disc
Total 0 titles
zsh: segmentation fault (core dumped) makemkvcon --debug info disc:0
bagel/root-15054#