diff --git a/zram-config b/zram-config index 8900c3f..c5fab2b 100755 --- a/zram-config +++ b/zram-config @@ -239,7 +239,7 @@ removeZdir() { removeZswap() { log "INFO" "Beginning removal of swap device." - if ! swapoff "/dev${ZRAM_DEV}" &> /dev/null; then + if ! swapoff "/dev${ZRAM_DEV}" &> /dev/null && [[ -z $SHUTDOWN ]]; then log "ERROR" "Failed to swapoff /dev${ZRAM_DEV}." return 1 fi