Fourth change to reset script file on February 10, 2025.

This commit is contained in:
raymond999999
2025-02-10 23:01:44 +08:00
parent 1c7dc2671c
commit 79d41ddad1
6 changed files with 6 additions and 6 deletions

View File

@@ -226,7 +226,7 @@ disable_selinux(){
}
set_swap(){
if grep -Eqi "noauto" /etc/fstab;then
if grep -Eqi "noauto" /etc/fstab;then
${COLOR}"${OS_ID} ${OS_RELEASE} swap已被禁用,不用设置!"${END}
else
sed -ri.bak '/swap/s/(.*)(defaults)(.*)/\1\2,noauto\3/g' /etc/fstab