mirror of
https://github.com/rekryt/iplist.git
synced 2025-10-13 00:49:36 +03:00
docs: update README.en.md (fix by
Kagashini)
This commit is contained in:
17
README.en.md
17
README.en.md
@@ -235,19 +235,16 @@ wget https://iplist.opencck.org/scripts/homeproxy/update_resources.sh -O /etc/ho
|
|||||||
# Add execution permissions
|
# Add execution permissions
|
||||||
chmod +x /etc/homeproxy/scripts/update_resources.sh
|
chmod +x /etc/homeproxy/scripts/update_resources.sh
|
||||||
|
|
||||||
|
# Fix cron deletion after reboot
|
||||||
|
sed -i '/sed -i/s/^/\t#/; /\/etc\/init.d\/cron restart >/s/^/\t#/' /etc/init.d/homeproxy
|
||||||
|
|
||||||
# Did you host this solution? - then uncomment the following line and replace "example.com" with your domain
|
# Did you host this solution? - then uncomment the following line and replace "example.com" with your domain
|
||||||
# sed -i 's/iplist.opencck.org/example.com/g' /etc/homeproxy/scripts/update_resources.sh
|
# sed -i 's/iplist.opencck.org/example.com/g' /etc/homeproxy/scripts/update_resources.sh
|
||||||
```
|
```
|
||||||
Open the administrative panel in OpenWRT, go to the "System" - "Startup" - "Local Startup" section.
|
Open the administrative panel in OpenWRT, go to the "System" - "Startup" - "Sсheduled Tasks" section.
|
||||||
Add the following lines before "exit 0" to automatically run the update script at startup, as well as at 00:05:00 and 12:05:00
|
Add the following line automatically run the update script at startup, as well as at 00:05:00 and 12:05:00
|
||||||
```shell
|
```
|
||||||
sleep 15
|
5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh
|
||||||
|
|
||||||
/etc/homeproxy/scripts/update_crond.sh
|
|
||||||
|
|
||||||
echo "5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh" > /etc/crontabs/root
|
|
||||||
/etc/init.d/cron enable
|
|
||||||
/etc/init.d/cron start
|
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
|
@@ -252,7 +252,7 @@ sed -i '/sed -i/s/^/\t#/; /\/etc\/init.d\/cron restart >/s/^/\t#/' /etc/init.d/h
|
|||||||
```
|
```
|
||||||
Откройте административную панель OpenWRT раздел "System" - "Sсheduled Tasks".
|
Откройте административную панель OpenWRT раздел "System" - "Sсheduled Tasks".
|
||||||
Добавьте строку, чтобы автоматически запускать скрипт обновления при старте, а также в 00:05:00 и 12:05:00
|
Добавьте строку, чтобы автоматически запускать скрипт обновления при старте, а также в 00:05:00 и 12:05:00
|
||||||
```shell
|
```
|
||||||
5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh
|
5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh
|
||||||
```
|
```
|
||||||

|

|
||||||
|
Reference in New Issue
Block a user