Dd-wrt Custom Script Update peanut Shell DDNS

Source: Internet
Author: User
Tags shell account

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.