Script to dynamically enable zram-swap on a Linux system (Pi zero, x86_64 and everything between).
Cut-paste the script and put in the sbin folder or add to the rc.local script itself; it's only really threee lines for a Pi zero. Alternatively create a systemd.service to run it.