From f542925b701989ba6eed7b08b5226d4021b9b85f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 15:00:48 +0200 Subject: Adding debian version 247.3-7+deb11u4. Signed-off-by: Daniel Baumann --- debian/tests/fsck | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 debian/tests/fsck (limited to 'debian/tests/fsck') diff --git a/debian/tests/fsck b/debian/tests/fsck new file mode 100755 index 0000000..77b50d7 --- /dev/null +++ b/debian/tests/fsck @@ -0,0 +1,27 @@ +#!/bin/bash +fd=0 + +OPTIND=1 +while getopts "C:aTlM" opt; do + case "$opt" in + C) + fd=$OPTARG + ;; + \?);; + esac +done + +shift "$((OPTIND-1))" +device=$1 + +echo "Running fake fsck on $device" + +declare -a maxpass=(30 5 2 30 60) + +for pass in {1..5}; do + maxprogress=${maxpass[$((pass-1))]} + for (( current=0; current<=${maxprogress}; current++)); do + echo "$pass $current $maxprogress $device">&$fd + sleep 0.1 + done +done -- cgit v1.2.3