mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-20 09:35:26 +00:00
Wait for 10 seconds of USB bus inactivity, previously 5 seconds before proceeding to execute nwipe, the 30 second timeout remains in place, resulting in the execution of nwipe irrespective of USB bus activity.
This commit is contained in:
@@ -37,7 +37,7 @@ tftp_errors="ERROR\|Transfer Timed out\|Network is unreachable"
|
||||
# countdown on screen from 30s with numeric digits, checking the sha1 of dmesg every 5 secs
|
||||
# will exit countdown before reaching zero if no USB activity for 5 seconds
|
||||
loop_count_total=30
|
||||
loop_count_check=5
|
||||
loop_count_check=10
|
||||
printf "\n"
|
||||
|
||||
while (( loop_count_total > 0 )); do
|
||||
@@ -52,7 +52,7 @@ while (( loop_count_total > 0 )); do
|
||||
((loop_count_check--))
|
||||
sleep 1
|
||||
done
|
||||
loop_count_check=5
|
||||
loop_count_check=10
|
||||
done
|
||||
printf "\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user