Fix bad markdownsyntax in README.md
This commit is contained in:
parent
8a12581d6d
commit
0036f78f60
1 changed files with 10 additions and 10 deletions
20
README.md
20
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 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/checkconnection.sh
|
||||||
# wget https://git.datenkastl.org/shell-scripts/checkconnection/raw/branch/main/restartmodem.sh
|
# wget https://git.datenkastl.org/shell-scripts/checkconnection/raw/branch/main/restartmodem.sh
|
||||||
# chmod +x checkconnection.sh
|
# chmod +x checkconnection.sh
|
||||||
# chmod +x restartmodem.sh
|
# chmod +x restartmodem.sh
|
||||||
``
|
```
|
||||||
|
|
||||||
|
|
||||||
### Add restartmodem.sh as failcommand
|
### Add restartmodem.sh as failcommand
|
||||||
|
|
||||||
Open checkconnection
|
Open checkconnection
|
||||||
``
|
```
|
||||||
# vi checkconnection.sh
|
# vi checkconnection.sh
|
||||||
``
|
```
|
||||||
and add the path to your *restartmodem.sh* at *failcommand=*
|
and add the path to your *restartmodem.sh* at *failcommand=*
|
||||||
|
|
||||||
|
|
||||||
### Install curl if desired
|
### Install curl if desired
|
||||||
|
|
||||||
``
|
```
|
||||||
# opkg update
|
# opkg update
|
||||||
# opkg install curl
|
# opkg install curl
|
||||||
``
|
```
|
||||||
|
|
||||||
|
|
||||||
### Add cronjob
|
### Add cronjob
|
||||||
|
|
||||||
Open crontab
|
Open crontab
|
||||||
``
|
```
|
||||||
# crontab -e
|
# crontab -e
|
||||||
``
|
```
|
||||||
and add vor example
|
and add vor example
|
||||||
``
|
```
|
||||||
*/1 * * * * /root/scripts/checkconnection.sh > /dev/zero*
|
*/1 * * * * /root/scripts/checkconnection.sh > /dev/zero*
|
||||||
``
|
```
|
||||||
to check the connection every minute and restart the modem if the check fails.
|
to check the connection every minute and restart the modem if the check fails.
|
||||||
|
|
Loading…
Reference in a new issue