Update create-swap.sh

main
yanglc 2021-06-21 18:49:27 +08:00 committed by GitHub
parent 1396c22b58
commit 722ac296f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@ get_char()
stty echo
stty $SAVEDSTTY
}
echo "按任意键添加1G大小的SWAP分区"
echo "按任意键添加2G大小的SWAP分区"
char=`get_char`
echo "###########开始添加SWAP分区##########"
dd if=/dev/zero of=/mnt/swap bs=1M count=1024
dd if=/dev/zero of=/mnt/swap bs=1M count=2048
echo -e
echo " ###########设置交换分区文件##########"
mkswap /mnt/swap