Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion makeself-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@ MS_dd()
bytes=\`expr \$3 % 1024\`
# Test for ibs, obs and conv feature
if dd if=/dev/zero of=/dev/null count=1 ibs=512 obs=512 conv=sync 2> /dev/null; then
iflag=""
# Test for fullblock feature
if dd if=/dev/zero of=/dev/null count=1 iflag=fullblock 2> /dev/null; then
iflag="iflag=fullblock"
fi
Comment thread
megastep marked this conversation as resolved.
dd if="\$1" ibs=\$2 skip=1 obs=1024 conv=sync 2> /dev/null | \\
{ test \$blocks -gt 0 && dd ibs=1024 obs=1024 count=\$blocks ; \\
{ test \$blocks -gt 0 && dd ibs=1024 obs=1024 count=\$blocks \$iflag ; \\
test \$bytes -gt 0 && dd ibs=1 obs=1024 count=\$bytes ; } 2> /dev/null
else
dd if="\$1" bs=\$2 skip=1 2> /dev/null
Expand Down