add 增加屏蔽助力池脚本

This commit is contained in:
ZJY 2021-10-20 16:39:34 +08:00
parent 8cd6a2ae92
commit 8eb20707c7

24
fix.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
if [ "$(grep 'transfer.nz.lu' /etc/hosts)" = "" ];
then
echo "127.0.0.1 transfer.nz.lu" | sudo tee -a /etc/hosts
fi
if [ "$(grep 'jdsharecode.xyz' /etc/hosts)" = "" ];
then
echo "127.0.0.1 jdsharecode.xyz" | sudo tee -a /etc/hosts
fi
if [ "$(grep 'helpu.cf' /etc/hosts)" = "" ];
then
echo "127.0.0.1 helpu.cf" | sudo tee -a /etc/hosts
fi
#result=$(grep 'smiek.tk' /etc/hosts)
# if [ "$reusult" = "" ]
# then
#$ echo "127.0.0.1 smiek.tk" | sudo tee -a /etc/hosts
# fi
#