#!/bin/bash

# Switching off swap
if [ "$(grep /dev/zram0 /proc/swaps)" != "" ]; then
swapoff /dev/zram0
fi

rmmod zram