~ubuntu-branches/ubuntu/natty/dump/natty

« back to all changes in this revision

Viewing changes to examples/dump_on_cd/start_dump.sh

  • Committer: Bazaar Package Importer
  • Author(s): Bdale Garbee
  • Date: 2002-03-20 01:23:11 UTC
  • Revision ID: james.westby@ubuntu.com-20020320012311-94kbs6nojd19hmd6
Tags: upstream-0.4b27
ImportĀ upstreamĀ versionĀ 0.4b27

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
if [ `id -u` != 0 ]; then 
 
3
  echo "root priviledges are required"
 
4
  exit 1
 
5
fi
 
6
Level=0
 
7
Label=`date -I`
 
8
#CD_Cap=650
 
9
CD_Cap=700
 
10
eval Cap=$(($CD_Cap*1024))
 
11
FS=/
 
12
UserExit=/root/dump_userinfo.sh
 
13
FiFo=/tmp/dump.fifo
 
14
rm -f $FiFo
 
15
mkfifo $FiFo
 
16
xterm -T cdrecord_1 -hold -e cdrecord dev=0,1,0 fs=64m \
 
17
    -v speed=4 -eject -pad -data $FiFo &
 
18
 
 
19
/sbin/dump -z6 -b64 -B$Cap -F $UserExit \
 
20
 -$Level -L $Label -f $FiFo  $FS
 
21
 
 
22
wavplay -q /root/alert.wav
 
23
rm -f $FiFo
 
24