This commit is contained in:
teldra 2021-05-09 12:59:02 +02:00
parent 33dfd1f506
commit 0efb5e9fa1
1 changed files with 0 additions and 6 deletions

View File

@ -16,12 +16,6 @@ for i in $(find /dev/disk/by-id/ -type l -printf "%P\n"|grep -v "part" |tac); do
if [[ "${name}" == *"/dev/sr"* ]]; then
continue
fi
if [[ "${name}" == "ata-"* ]]; then
continue
fi
if [[ "${name}" == "usb-"* ]]; then
continue
fi
index=$(( index + 1 ))
size="$(fdisk -l "${name}" | head -n1 | awk '{print $3}')"
size=$(awk "BEGIN { printf(\"%.0f\n\", ${size}); }")