瀏覽代碼

New Option

log2ram will now allow users to set it never to write back to the disk, thus allowing the /var/log folder to remain empty and untouched (on the disk). This will further reduce SSD/SD card writes.
pull/116/head
Isaac-D-Cohen 4 年之前
committed by GitHub
父節點
當前提交
39579ec27d
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      log2ram

+ 5
- 0
log2ram 查看文件

@@ -34,6 +34,9 @@ remountOriginal() {
}

syncToDisk () {
if [ "$WRITE_TO_DISK" = true ]; then
isSafe
#INITIAL_STATE=$(remountRW)

@@ -43,6 +46,8 @@ syncToDisk () {
cp -rfup $RAM_LOG/ -T $HDD_LOG/ 2>&1 | tee -a $LOG2RAM_LOG
fi
#remountOriginal ${INITIAL_STATE}
fi
}

syncFromDisk () {


Loading…
取消
儲存