/usr/bin/simpleburn-burn-data is in simpleburn 1.6.5-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/bash
cdwriter=$1
directory=`echo $2 | sed 's/"//g'`
if [ ! -d "$directory" ] || [ ! -b "$cdwriter" ]; then
echo "usage: $0 cdwriter directory"
echo "example: $0 /dev/sr0 /home/me/data"
exit
fi
if mount | grep -q "^$cdwriter "; then
umount $cdwriter || exit 255
fi
source simpleburn-burning-suite quiet
label=`basename "$directory"`
if echo $MKISOFS | grep -q "xorriso"
then umount $cdwriter
xorriso -dev $cdwriter -joliet on -volid "$label" -map "$directory" / -pkt_output on | simpleburn-gauges xorriso
status=${PIPESTATUS[0]}
else tsize=`$MKISOFS -J -r -N -d -hide-rr-moved -print-size "$directory"`
let tracksize=tsize/512 #blocks => MB
$MKISOFS -J -r -N -d -hide-rr-moved -V "$label" "$directory" | $CDRECORD -v gracetime=3 dev=$cdwriter driveropts=burnfree tsize=$tsize\s -data -pad - | simpleburn-gauges cdrecord $tracksize
status=${PIPESTATUS[0]}&&${PIPESTATUS[1]}
fi
echo "100"
exit $status
|