瀏覽代碼

log2ram bugfix

cleanup at stop)
pull/237/head
HoTschir 1 月之前
committed by GitHub
父節點
當前提交
186ca4d9cb
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      log2ram

+ 5
- 0
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
;;


Loading…
取消
儲存