From d9ccdd4c6d3f1e78a74421b66c2997b20b98c847 Mon Sep 17 00:00:00 2001 From: PartialVolume <22084881+PartialVolume@users.noreply.github.com> Date: Thu, 23 Oct 2025 22:36:38 +0100 Subject: [PATCH] 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. --- board/shredos/fsoverlay/usr/bin/nwipe_launcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/shredos/fsoverlay/usr/bin/nwipe_launcher b/board/shredos/fsoverlay/usr/bin/nwipe_launcher index a29e599a01..73b033f1e3 100755 --- a/board/shredos/fsoverlay/usr/bin/nwipe_launcher +++ b/board/shredos/fsoverlay/usr/bin/nwipe_launcher @@ -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"