From ef29cc41b3f832e8bc479abeb7eab8e976cea75a Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 22 Dec 2020 16:53:33 +0800 Subject: [PATCH] fix bug --- set_swap.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/set_swap.sh b/set_swap.sh index afbcb59..8168831 100644 --- a/set_swap.sh +++ b/set_swap.sh @@ -35,8 +35,7 @@ function set_swap(){ chmod 600 /dev/swap mkswap /dev/swap swapon /dev/swap && \ - #写入分区表 - echo '/dev/swap swap swap defaults 0 0' >> /etc/fstab + echo '/dev/swap swap swap defaults 0 0' >> /etc/fstab } #判断当前是否开启了虚拟内存