优化 SmartDNS 插件脚本兼容性

This commit is contained in:
CallMeR
2025-08-28 13:18:04 +08:00
parent 4aaa101400
commit c6ebb95ed3
4 changed files with 29 additions and 35 deletions
+2 -2
View File
@@ -270,7 +270,7 @@ $ sudo chmod +x /usr/local/bin/smartdns-plugin.sh
$ sudo chattr +i /usr/local/bin/smartdns-plugin.sh
## 执行脚本
$ sudo bash /usr/local/bin/smartdns-plugin.sh
$ sudo /usr/local/bin/smartdns-plugin.sh
```
### 6.2.定时任务
@@ -300,7 +300,7 @@ $ sudo crontab -e
20 9 * * * /usr/bin/curl --retry-connrefused --retry 5 --retry-delay 5 --retry-max-time 60 -fsSLR -o /etc/smartdns.d/anti-ad.smartdns.conf https://anti-ad.net/anti-ad-for-smartdns.conf
30 9 * * * /usr/bin/bash /usr/local/bin/smartdns-plugin.sh
30 9 * * * /usr/local/bin/smartdns-plugin.sh
```
### 6.3. SmartDNS 主配置