diff --git a/zram-config b/zram-config index 302a67c..820e2e8 100755 --- a/zram-config +++ b/zram-config @@ -197,7 +197,6 @@ fi case "$1" in start) echo "zram-config start $(date +%Y-%m-%d-%H:%M:%S)" | tee -a "$ZLOG" - rm -fv "${TMPDIR}"/zram-device-list.new >> "$ZLOG" ZTAB_EMPTY="true" while read -r line; do case "$line" in @@ -227,12 +226,10 @@ case "$1" in entry="$(grep "${1}.*${5}" "${TMPDIR}"/zram-device-list)" fi if [[ -n $entry ]]; then - echo "Entry ${entry} already exists as a zram device, skipping recreation of device." - echo "$entry" >> "${TMPDIR}"/zram-device-list.new + echo "Entry ${entry} already exists as a zram device, skipping recreation of device." >> "$ZLOG" continue fi fi - test -f "${TMPDIR}"/zram-device-list.new && mv "${TMPDIR}"/zram-device-list.new "${TMPDIR}"/zram-device-list case "$1" in swap)