2019-01-04 17:23:27 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-10-27 04:46:25 +00:00
|
|
|
# zero-pads $1 to a multiple of 512 bytes, in place
|
2019-07-22 10:19:41 +00:00
|
|
|
|
2021-10-27 04:46:25 +00:00
|
|
|
dd if=/dev/null of="$1" bs=1 count=1 seek="$((($(wc -c < "$1") + 511) & -512))" 2>/dev/null
|