Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- s=$(cat /etc/fstab | grep -c 'UUID')
- if [ $s -eq 2 ]; then
- swapoff -a;
- rm -f /swapfile;
- fallocate -l 4G /swapfile;
- chmod 600 /swapfile;
- mkswap /swapfile;
- swapon -a;
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement