blob: 105d187de9751beee57a6f63f27f638c0f8d51a8 (
plain)
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
32
33
34
35
36
37
38
39
|
#!/bin/bash
unset flags
while [[ "x$1" = "x-"* ]]
do
flags="${flags} $1"
shift
done
if [ ! -r cd.cue ] \
|| [ ! -r joined.wav ] \
|| [ "$(ls -1t cd.cue joined.wav "$@" \
| head -n2 \
| sort \
| tr '\n' ' ')" \
!= "cd.cue joined.wav " ]
then
shncue "$@" > cd.cue
shnjoin "$@"
fi
su -c '
/etc/rc.d/boinc stop
was="y"
ec[0]="jJyY"
ec[1]="nN"
while [[ "${ec[0]}" == *"${was}"* ]]
do
cdrdao write '"${flags}"' --eject --device /dev/sr0 cd.cue
unset was
while [[ "${ec[0]}" != *"${was}"* ]] && [[ "${ec[1]}" != *"${was}"* ]] || [ -z "${was}" ]
do
read -p "Noch eine CD brennen (j/y/n)? " was
done
done
/etc/rc.d/boinc start
'
|