~ubuntu-branches/ubuntu/jaunty/usb-imagewriter/jaunty

« back to all changes in this revision

Viewing changes to imagewriter

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2008-07-06 17:09:42 UTC
  • Revision ID: james.westby@ubuntu.com-20080706170942-u5zqbt4fzt90n1ah
Tags: upstream-0.1.1
ImportĀ upstreamĀ versionĀ 0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Yes that script is horribly ugly and it would be nice if someone
 
4
# would implement the pkill pinging in the pythn script or even write
 
5
# a safe replacement for dd at all with proper progress reporting
 
6
# directly in the python script instead of that hack.
 
7
 
 
8
set -e
 
9
 
 
10
TERM=xterm
 
11
 
 
12
DIR=/usr/lib/imagewriter
 
13
 
 
14
watch -n1 -- pkill -USR1 ^dd$ >/dev/null 2>&1 &
 
15
MYPID=$!
 
16
$DIR/imagewriter.py && kill -9 $MYPID