2021-02-16 01:01:22 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-08-22 22:04:55 -04:00
|
|
|
# zero-pads $1 to a multiple of 512 bytes, in place
|
2021-02-16 01:01:22 -05:00
|
|
|
|
2022-08-22 22:04:55 -04:00
|
|
|
dd if=/dev/null of="$1" bs=1 count=1 seek="$((($(wc -c < "$1") + 511) & -512))" 2>/dev/null
|