Create swap.sh

This commit is contained in:
Pijus Kamandulis authored and GitHub committed 2019-06-08 13:49:09 +03:00
1 parent 33030b030b
commit 9ba570b2cf
1 file changed
+5
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile