File indexing completed on 2024-06-16 13:59:15

0001 #! /bin/env sh
0002 
0003 SWAP_FILE="/swapfile"
0004 fallocate -l 2G ${SWAP_FILE}
0005 chmod 600 ${SWAP_FILE}
0006 mkswap ${SWAP_FILE}
0007 
0008 echo "${SWAP_FILE} none swap sw 0 0" >> /etc/fstab