|
|
@ -18,7 +18,7 @@ sectors_to_size() {
|
|
|
|
printf "%.4g%s\n" "${SIZE}" "${TAG}B"
|
|
|
|
printf "%.4g%s\n" "${SIZE}" "${TAG}B"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[ $EUID -gt 0 ] && "Must run as superuser." && exit 1
|
|
|
|
[ $EUID -gt 0 ] && echo "Must run as superuser." && exit 1
|
|
|
|
|
|
|
|
|
|
|
|
for DEVICE in $(fdisk -l | grep '^Disk /' | grep -v '/dev/ram' | cut -d\ -f2 | cut -d: -f1); do
|
|
|
|
for DEVICE in $(fdisk -l | grep '^Disk /' | grep -v '/dev/ram' | cut -d\ -f2 | cut -d: -f1); do
|
|
|
|
|
|
|
|
|
|
|
|