Commit e28f0044 authored by Iulian Gheorghiu's avatar Iulian Gheorghiu

Add README.md

parents
```
vi /etc/crontab
```
Add:
```
*/5 * * * * root /volume1/network_check.sh
```
```
vi /volume1/network_check.sh
```
Append:
```
#!/bin/sh
/usr/syno/bin/synologset1 sys info 0x11100000 "Checking if network is up at google.com"
if ! ping -I ppp0 -c 1 google.com; then
ifconfig eth0 down
/usr/syno/bin/synologset1 sys error 0x11100000 "Network is down, resseting eth0 interface"
sleep 10
ifconfig eth0 up
fi
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment