From 0036f78f604be2bb9d82c418349c0d4df2025226 Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Tue, 24 Oct 2023 08:29:11 +0200 Subject: [PATCH] Fix bad markdownsyntax in README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a985c8f..63512e1 100644 --- a/README.md +++ b/README.md @@ -18,39 +18,39 @@ Restart any given interface of OpenWrt. Wget should be installed by default on OpenWrt. (git works as well, but it's not installed by default.) -`` +``` # wget https://git.datenkastl.org/shell-scripts/checkconnection/raw/branch/main/checkconnection.sh # wget https://git.datenkastl.org/shell-scripts/checkconnection/raw/branch/main/restartmodem.sh # chmod +x checkconnection.sh # chmod +x restartmodem.sh -`` +``` ### Add restartmodem.sh as failcommand Open checkconnection -`` +``` # vi checkconnection.sh -`` +``` and add the path to your *restartmodem.sh* at *failcommand=* ### Install curl if desired -`` +``` # opkg update # opkg install curl -`` +``` ### Add cronjob Open crontab -`` +``` # crontab -e -`` +``` and add vor example -`` +``` */1 * * * * /root/scripts/checkconnection.sh > /dev/zero* -`` +``` to check the connection every minute and restart the modem if the check fails.