Skip to content

Commit

Permalink
Add swap on/off back in
Browse files Browse the repository at this point in the history
  • Loading branch information
hilary-luo committed Nov 1, 2023
1 parent 2d1fc97 commit ef937e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/swap_off.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

sudo swapoff -v /swapfile
sudo rm /swapfile
6 changes: 6 additions & 0 deletions scripts/swap_on.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

0 comments on commit ef937e3

Please sign in to comment.