Browse Source

fix bug

master
xiaoz 4 years ago
parent
commit
ef29cc41b3
  1. 1
      set_swap.sh

1
set_swap.sh

@ -35,7 +35,6 @@ function set_swap(){
chmod 600 /dev/swap chmod 600 /dev/swap
mkswap /dev/swap mkswap /dev/swap
swapon /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
} }

Loading…
Cancel
Save