Files
rt-white-ip/README.md
Maksim Ivanov fb1476faa1 README.md
2021-09-17 12:12:22 +03:00

21 lines
872 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Небольшой скрипт для переподключения при получении серого IP у Ростелекома.
## Использование (на OpenWRT)
1. Скопируйте файлы **10-white_ip** и **white_ip.sh** в директорию **/opt** на роутере
```wget -P /opt/ https://raw.githubusercontent.com/Ld-Hagen/rt-white-ip/main/10-white_ip```
```wget -P /opt/ https://raw.githubusercontent.com/Ld-Hagen/rt-white-ip/main/white_ip.sh```
2. Сделайте их исполняемыми
```chmod +x /opt/10-white_ip /opt/white_ip.sh```
3. Укажите имя вашего WAN интерфейса в переменной **wan_iface** файла **white_ip.sh**
4. Создайте ссылку на **10-white_ip** в **/etc/hotplug.d/iface/**
```ln -s /opt/10-white_ip /etc/hotplug.d/iface/```