From 186ca4d9cbbbdfcbe7144bd5507c30475a6bf011 Mon Sep 17 00:00:00 2001 From: HoTschir <148773120+HoTschir@users.noreply.github.com> Date: Wed, 25 Sep 2024 13:14:27 +0200 Subject: [PATCH] log2ram bugfix cleanup at stop) --- log2ram | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/log2ram b/log2ram index 5753a8e..c4069a4 100755 --- a/log2ram +++ b/log2ram @@ -2,6 +2,7 @@ # HTs 2024-09-25: - repeated start) (without stop) does not cause additional "mount --bind" anymore # - LOG2RAM_LOG, extended by sync_to_disk, is rescued, when sync_to_disk +# - cleanup at stop) . /etc/log2ram.conf @@ -173,6 +174,10 @@ stop) umount -l "$HDD_LOG"/ # Unsure as even with Root permision denied #echo ${ZRAM_LOG} > /sys/class/zram-control/hot_remove + + # ++HTs 2024-09-25: cleanup + rm -rf "$HDD_LOG" + done exit 0 ;;