1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
raspberrypi-build/test/partition_alignment.sh
2017-09-25 15:51:38 +00:00

15 lines
413 B
Bash

#!/bin/false
STARTS=$(partx --show --noheadings --output START - "$IMG_FILE")
echo '--- starts ---'
echo "$STARTS" | while read -r line; do echo $line; done
test 2 -eq $(echo "$STARTS" | wc -l)
REMS=$(echo "$STARTS" | while read -r line; do echo $(($line % 4096)); done)
echo '--- rems ---'
echo "$REMS" | while read -r line; do echo $line; done
echo "$REMS" | while read -r line; do test 0 -eq $line; done