From: Thomas Glanzmann Date: Tue, 22 Feb 2022 17:29:44 +0000 (+0100) Subject: Merge branch 'master' of a.gmvl.de:/git/m1-debian X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/commitdiff_plain/eb34dc0156695c8022853abb8b9e0c2191489462?hp=77e86a7128b3916f8c5bc28e797a9e333d6ea63c Merge branch 'master' of a.gmvl.de:/git/m1-debian --- 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