From 59547f3fb7e907eb281b94142dc7923b52ef524e Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Tue, 7 Jan 2025 16:53:42 +0100 Subject: [PATCH] use busybox --- inotify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inotify.sh b/inotify.sh index eb568e3..9aa0ef5 100644 --- a/inotify.sh +++ b/inotify.sh @@ -12,7 +12,7 @@ inotifywait -m /out -e close_write | chunk_size="$CHUNK_SIZE" id="${FILE%.mp4}" - file_size=$(stat -c%s "$file_path") + file_size=$(busybox stat -c%s "$file_path") num_chunks=$(( (file_size + chunk_size - 1) / chunk_size )) i=0