From be121bec72e870d833f3a485113fd41b4e9f071e Mon Sep 17 00:00:00 2001 From: Rekryt Date: Sun, 16 Mar 2025 19:48:19 +0300 Subject: [PATCH] docs: update README.en.md (fix by Kagashini) --- README.en.md | 17 +++++++---------- README.md | 2 +- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/README.en.md b/README.en.md index 8746b74..d7c7b3a 100644 --- a/README.en.md +++ b/README.en.md @@ -235,19 +235,16 @@ wget https://iplist.opencck.org/scripts/homeproxy/update_resources.sh -O /etc/ho # Add execution permissions 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 # 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. -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 -```shell -sleep 15 - -/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 +Open the administrative panel in OpenWRT, go to the "System" - "Startup" - "Sсheduled Tasks" section. +Add the following line automatically run the update script at startup, as well as at 00:05:00 and 12:05:00 +``` +5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh ``` ![2](https://github.com/user-attachments/assets/2369b32c-d43a-4837-97ce-c46a9dd79e5e) diff --git a/README.md b/README.md index 09e7c4d..0800ff9 100644 --- a/README.md +++ b/README.md @@ -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". Добавьте строку, чтобы автоматически запускать скрипт обновления при старте, а также в 00:05:00 и 12:05:00 -```shell +``` 5 0,12 * * * /etc/homeproxy/scripts/update_crond.sh ``` ![2](https://github.com/user-attachments/assets/2369b32c-d43a-4837-97ce-c46a9dd79e5e)