Add swap.sh

This commit is contained in:
Zakary Timson 2024-07-26 23:10:14 -04:00
parent 10281e81d8
commit c1a914f304

6
swap.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
dd if=/dev/zero of=/swapfile bs=1m count=1024
chown 600 /swapfile
mkswap /swapfile
swapon /swapfile