What's new

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:[email protected]/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:[email protected]/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