What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Help with converting this to a DDNS Script

Code:
#!/bin/sh
# Update the following variables
PASSWORD=
HOSTNAME=

# Should be no need to modify anything beyond this point
/usr/sbin/curl -4 -k --silent "https://$HOSTNAME:$PASSWORD@dyn.dns.he.net/nic/update?hostname=$HOSTNAME" > /dev/null
if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi

exit 0
 
Last edited:
Code:
#!/bin/sh
# Update the following variables
PASSWORD=
HOSTNAME=

# Should be no need to modify anything beyond this point
/usr/sbin/curl -4 -k --silent "https://$HOSTNAME:$PASSWORD@dyn.dns.he.net/nic/update?hostname=$HOSTNAME" > /dev/null
if [ $? -eq 0 ]; then
/sbin/ddns_custom_updated 1
else
/sbin/ddns_custom_updated 0
fi

exit 0

Thank you for your help.

Does this need to have permissions set to execute once I upload it to the Script folder in JFFS?
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top