1
0
mirror of https://github.com/pConst/basic_verilog.git synced 2025-01-14 06:42:54 +08:00
basic_verilog/scripts/add_swap32.sh
2022-11-10 10:28:22 +03:00

10 lines
211 B
Bash

#!/bin/bash
# the script adds 32GB of permanent swap space
sudo fallocate -l 32G /swap32
sudo chmod 600 /swap32
sudo mkswap /swap32
sudo swapon /swap32
echo '/swap32 none swap sw 0 0' | sudo tee -a /etc/fstab