N years ago bought a tp-link 841n V7, has been used to calculate, in addition to not regularly restart the router, or slow speed of the Turtle crawl Ah! This is also TP original firmware of common problems, so brush dd-wrt, say DD really cool, in addition to powerful, and very stable, now my router has been stable operation basically did not restart.
Since the DD firmware, it must be a variety of settings, the first is DDNS, from the Internet to view a variety of documents, including the peanut shell of the official website of the forum in a post, such as the official post can not solve my problem, so still write a script it, in various attempts, Finally, a script to update the peanut shell domain name is implemented, and the following script is entered in the DD management-like command :
#!/bin/shwanip=$ (nvram get wan_ipaddr)wget -q-o/var/log/hsk.log http://user name : Password @ddns.oray.com/ph/update?hostname= peanut shell domain name &myip= $wanip >/dev/null 2>&1
The above user name password is your peanut shell account number and password, peanut shell domain name is their own shell domain name to fill in on the OK.
Then click Save as a custom command , DD will automatically save the script in/tmp/custom.sh,
Finally set the timing script to switch to the DD Settings Interface Management--- admin->cron midpoint on, and add the timing script as follows:
* * * * * * * * root/tmp/custom. SH
The script above must be executed by the root user, otherwise it cannot be executed. I set the IP to update every 30 minutes, (Am I too merciful for the peanut Shell server?). Let's set the timing according to your own situation. In fact, I would like to set to 1 minutes once, but think also so urgent demand, after the need to say it.
Dd-wrt Custom Script Update peanut Shell DDNS