pastebin - collaborative debugging tool
phoenix.kpaste.net RSS

Difference between
modified post 1f99715c3e by Phoenix on Mon 13th May 2013 04:52
original post 2f2b227 by Phoenix on Mon 13th May 2013 04:29
Download diff
Show old version | new version | both versions

    
11
#!/bin/bash
22
function receiving(){
33
  read -p "Receiving partition $1"
44
}
66
DATE=`date +%F`
88
mkdir $DATE
99
cd $DATE
1111
receiving 1
12-
nc -l 31337|dd of=mmcblk0p1.img
12+
nc -l 31337|pv|dd of=mmcblk0p1.img
1414
echo
1616
echo "Skipping partition 2"
1818
echo
2020
receiving 3
21-
nc -l 31337|dd of=mmcblk0p3.img
21+
nc -l 31337|pv|dd of=mmcblk0p3.img
2323
echo
2525
receiving 4
26-
nc -l 31337|dd of=mmcblk0p4.img
26+
nc -l 31337|pv|dd of=mmcblk0p4.img
2828
echo
3030
echo "Receiving MD5s"
3131
nc -l 31337 > md5s.md5
3333
echo
3535
echo "Checking MD5s"
3737
/cygdrive/c/Program\ Files\ \(x86\)/cfv/cfv.exe --progress=yes
3939
echo "Finished"

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at