6 lines
134 B
Bash
6 lines
134 B
Bash
#!/bin/sh
|
|
size="8G"
|
|
modprobe zram
|
|
echo $size > /sys/block/zram0/disksize
|
|
mkswap /dev/zram0
|
|
swapon -v /dev/zram0 & echo "zram enabled"
|