#!/bin/sh
# Take the zram swap down when the service stops (sv down, shutdown).
grep -q '^/dev/zram0 ' /proc/swaps && swapoff /dev/zram0
echo 1 > /sys/block/zram0/reset 2>/dev/null
exit 0
