idd.sh: Added block size flag to dd for speed increase

This commit is contained in:
mollusk 2017-05-09 21:27:59 -07:00
parent 8d20e8e3be
commit 51ff95afac

4
idd.sh
View File

@ -127,7 +127,7 @@ case "$1" in
echo echo
printf "${LCYAN}Please wait ...${NC}\n" printf "${LCYAN}Please wait ...${NC}\n"
echo echo
pv -tpreb ${filepath} | dd of=${DEVICEDIR}/${devname};sync pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync
printf "${LGREEN}Done writing file${NC}\n" printf "${LGREEN}Done writing file${NC}\n"
else else
echo "${0}: Please install 'pv' with your package manager" echo "${0}: Please install 'pv' with your package manager"
@ -177,7 +177,7 @@ case "$1" in
echo echo
printf "${LCYAN}Please wait ...${NC}\n" printf "${LCYAN}Please wait ...${NC}\n"
echo echo
pv -tpreb ${filepath} | dd of=${DEVICEDIR}/${devname};sync pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync
printf "${LGREEN}Done writing file${NC}\n" printf "${LGREEN}Done writing file${NC}\n"
else else
echo "${0}: pv command not found in /usr/bin" echo "${0}: pv command not found in /usr/bin"