File: bincuefunc.sh

package info (click to toggle)
bashburn 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,140 kB
  • sloc: sh: 2,584; sed: 64; makefile: 19
file content (19 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
burn_bincue()
{
    typeset bbspeed
    # cdrdao does not like speed being set to -1
    (( "${BBSPEED}" -eq -1 )) && bbspeed=8 || bbspeed=$BBSPEED

    shopt -s nocaseglob
    if ${BB_CDIMAGECMD} write --device \"${BBCDWRITER}\" \
	    --driver generic-mmc --speed \"${bbspeed}\" \
	    -v 2 --eject \
	    "${BBBURNDIR}"/$(ls \"${BBBURNDIR}\" | grep cue)
    then
	echo $bb_bincue_burn_1
    else
	echo $bb_bincue_burn_2
    fi
    shopt -u nocaseglob
    wait_for_enter
}