я вообще создал ez-ipupdate.conf на флешке /tmp/harddisk/ez-ipupdate/ez-ipupdate.conf
Code:
service-type=dyndns
user=********
host=********
cache-file=/tmp/harddisk/ez-ipupdate/cache
pid-file=/etc/ez-ipupdate/pid
max-interval=86400
далее в /opt/etc/ создал файл ddns
Code:
#!/bin/sh
ez_path="/tmp/harddisk/ez-ipupdate"
ip=`wget -O - http://checkip.dyndns.org | sed -e 's/<\/body><\/html>.*//' |sed -e 's/<html><head><title>Current IP Check<\/title><\/head><body>Current IP Address: //'`
/usr/sbin/ez-ipupdate --address $ip -c $ez_path/ez-ipupdate.conf -b $ez_path/cache
прописал его запуск из post-mount
Code:
#!/bin/sh
insmod tun.o
(while true; do /opt/sbin/madwimax -qof; sleep 10; done) &
/opt/etc/init.d/rc.unslung start
/opt/etc/sendsms/send.php 79011111111 Роутер Yota готов к работе!!!
/opt/etc/ddns
и раз в час запускаю кроном