Browse Source

Update 'wiper.sh'

panda 2 years ago
parent
commit
4d23675595
1 changed files with 4 additions and 2 deletions
  1. 4 2
      wiper.sh

+ 4 - 2
wiper.sh

@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 #variables:
-random_pass=3
+random_pass=2
 zeroing_pass=1
 prereq_list="pv smartmontools hdparm"
 YUM_CMD=$(which yum)
@@ -116,7 +116,7 @@ disk_bytes=$(( 1024*disk_blocks ))
 
 
 #wipe:
-#see: https://serverfault.com/questions/6440/is-there-an-alternative-to-dev-urandom
+#see: https://wiki.archlinux.org/title/Securely_wipe_disk/Tips_and_tricks#dd_-_advanced_example
 
 for r_pass in $(seq 1 $random_pass); do
 	echo "INFO: Random pass $r_pass of $random_pass :"
@@ -136,3 +136,5 @@ echo "!!! FINISHED wiping $1 !!!"
 #https://stackoverflow.com/questions/12806176/checking-for-installed-packages-and-if-not-found-install
 #https://stackoverflow.com/questions/19477682/bash-script-determine-vendor-and-install-system-apt-get-yum-etc
 #https://jschumacher.info/2016/03/erasing-with-openssl/
+#https://wiki.archlinux.org/title/Securely_wipe_disk/Tips_and_tricks#dd_-_advanced_example
+#https://serverfault.com/questions/6440/is-there-an-alternative-to-dev-urandom