/[soft]/usbdumper/trunk/tools/dd.sh
ViewVC logotype

Contents of /usbdumper/trunk/tools/dd.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1110 - (show annotations) (download) (as text)
Wed May 4 21:14:55 2011 UTC (12 years, 11 months ago) by ennael
File MIME type: application/x-sh
File size: 212 byte(s)
update files for usbdumper

1 #!/bin/sh
2
3 if [ $# -ne 2 ]
4 then
5 exit 1
6 fi
7
8 /bin/dd if=$1 of=$2 bs=8M &
9 pid=$!
10
11 echo "DDPID=$pid"
12
13 while true;
14 do
15 sleep 5
16 kill -USR1 $pid 1>/dev/null 2>&1
17 if [ $? -ne 0 ]
18 then
19 exit 0
20 fi
21 done
22
23 sync

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30