novaspirit / rpi_zram

script to enable zram for raspberry pi
351 stars 96 forks source link

auto install zram #7

Closed dcpender closed 5 years ago

dcpender commented 5 years ago

!/bin/bash

ZRAM Config

sudo wget -O /usr/bin/zram.sh https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh

Make ZRAM Executable

sudo chmod +x /usr/bin/zram.sh

edit /etc/rc.local file to run script on boot

sudo sed -i '/exit 0/c\/usr/bin/zram.sh &\nexit 0' /etc/rc.local

Reboot

reboot