SHARE
TWEET

Untitled

a guest Oct 10th, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. s=$(cat /etc/fstab | grep -c 'UUID')
  3. if [ $s -eq 2 ]; then
  4.     swapoff -a;
  5.     rm -f /swapfile;
  6.     fallocate -l 4G /swapfile;
  7.     chmod 600 /swapfile;
  8.     mkswap /swapfile;
  9.     swapon -a;
  10. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top