9 lines
179 B
Bash
9 lines
179 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
echo " -- Create /swapfile"
|
||
|
sudo dd if=/dev/zero of=/swapfile bs=1G count=20
|
||
|
sudo chmod 600 /swapfile
|
||
|
sudo mkswap /swapfile
|
||
|
sudo swapon /swapfile
|
||
|
echo "-- Activated"
|