Add swap.sh
This commit is contained in:
parent
10281e81d8
commit
c1a914f304
6
swap.sh
Normal file
6
swap.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
dd if=/dev/zero of=/swapfile bs=1m count=1024
|
||||||
|
chown 600 /swapfile
|
||||||
|
mkswap /swapfile
|
||||||
|
swapon /swapfile
|
Loading…
x
Reference in New Issue
Block a user