idd.sh: output that sync command is running

This commit is contained in:
mollusk 2017-05-11 16:24:03 -07:00
parent 216c8232db
commit 3b88baf374

10
idd.sh
View File

@ -127,7 +127,10 @@ case "$1" in
echo echo
printf "${LCYAN}Please wait ...${NC}\n" printf "${LCYAN}Please wait ...${NC}\n"
echo echo
pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname}
echo
printf "${YELLOW}Syncing buffers...${NC}\n";sync
echo
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 +180,10 @@ case "$1" in
echo echo
printf "${LCYAN}Please wait ...${NC}\n" printf "${LCYAN}Please wait ...${NC}\n"
echo echo
pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname};sync pv -tpreb ${filepath} | dd bs=4M of=${DEVICEDIR}/${devname}
echo
printf "${YELLOW}Syncing buffers...${NC}\n";sync
echo
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"