From: Thomas Glanzmann Date: Tue, 22 Feb 2022 17:29:39 +0000 (+0100) Subject: here we go X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/ed9ee91748f4ac4d9c91a69826d6d39e093d132d?hp=a2845c74e267f0d75a8912a309882adbba880d2b here we go --- diff --git a/doc/marcan_sep_cleanup_script.txt b/doc/marcan_sep_cleanup_script.txt new file mode 100644 index 0000000..bfb3874 --- /dev/null +++ b/doc/marcan_sep_cleanup_script.txt @@ -0,0 +1,22 @@ +#!/bin/sh + +# Fetch from https://marcan.st/paste/4wuJXyRX.txt +# Written by marcan 2022-02-22 + +cat > /tmp/uuids.txt <> /tmp/uuids.txt + +cd /System/Volumes/iSCPreboot + +for i in ????????-????-????-????-????????????; do + if grep -q "$i" /tmp/uuids.txt; then + echo "KEEP $i" + else + echo "RM $i" + rm -rf "$i" + fi +done