figs/etc/local.d/zram.start
2021-04-17 20:54:04 -05:00

6 lines
135 B
Bash

#!/bin/sh
size="10G"
modprobe zram
echo $size > /sys/block/zram0/disksize
mkswap /dev/zram0
swapon -v /dev/zram0 & echo "zram enabled"