diff --git a/README.md b/README.md index 976f50c..1f04fe4 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,3 @@ See also at [LUG-VS-Wiki Nützliche Scripte](https://lug-vs.org//lugvswiki/index |[utf8.sh](utf8.sh)|Convert text from e.g. Windows latin1 to utf8 text (e.g. in READMEs or other text (not for office documents))| |[wmf2svg.sh](wmf2svg.sh)|Example script converts WMF files in SVG to share it easily on the internet| |[write-exif-comment.sh](write-exif-comment.sh)|Write JPEG EXIF comment in all *.jpg files| - diff --git a/SchredderHDD.sh b/SchredderHDD.sh index c1e0886..9a69529 100755 --- a/SchredderHDD.sh +++ b/SchredderHDD.sh @@ -1,7 +1,7 @@ #!/bin/sh # Löscht ein komplettes Device # Version 0.2.0 -# Vom 2012-10-15 Aktualisert am 2021-01-24 +# Vom 2012-10-15 Aktualisert am 2022-01-11 # (c) LUG-VS (GPL) ##Status anzeigen: @@ -28,7 +28,7 @@ fi # Device zuweisen OF=$1 -SIZE=$(fdisk -l ${OF} 2> /dev/null | grep ${OF} | sed -r "s/.*\, (.*) byte.*/\1/I") +SIZE=$(( $(fdisk -l ${OF} 2> /dev/null | grep ${OF} | sed -r "s/.*\, (.*) byte.*/\1/I" | head -n1) )) NAME=$(fdisk -l ${OF} 2> /dev/null | head -n2 | tail -n1 | sed 's/.*: *//' | sed 's/ *//') RNDOM=$(( 20 * 1024 * 1024 )) # Durchsatz bei Zufallszahlen in B/s NULLS=$(( 40 * 1024 * 1024 )) # Durchsatz bei Zufallszahlen in B/s