Rich wrote:
> I am using TZO's Dynamic IP address service. I generated the
> perl script from their site (
www.tzo.com) and copied it over to
> the e-smith machine. It works fine when I run it manually.
> Question is, How do I get the script to run at init time, after
> my dsl connection comes up?
You are struggling because you are using two features currently unsupported by e-smith - the TZO service, and DSL. You've obviously got the DSL sorted out by applying the PPPoE solution, so you just need the TZO sorted out.
First, configure your system for using TZO:
/sbin/e-smith/config set DynDnsAccount 'xxxxxxxx'
/sbin/e-smith/config set DynDnsPassword 'yyyyyyy'
/sbin/e-smith/config set DynDnsService tzo
Then add the following script in /sbin/e-smith/dynamic-dns/tzo:
#!/bin/sh
#-------------------------------------------------------
# Send DNS IP address update to tzo.com.
#-------------------------------------------------------
IPADDR=$1
USERID=$2
PASSWD=$3
DOMAIN=$4
DATETIME=date
lynx -source "http://rh.tzo.com/webclient/rhsignedon.html?\
TZOName=$DOMAIN\
&Email=$USERID\
&TZOKey=$PASSWD\
&IPAddress=$IPADDRESS\
&B1=Sign+On+to+TZO+DDNS+Servers" |\
sed -e "s,^,$DATETIME: ," -e "s,<.*\?>,,g"
Make the script executable:
chmod +x /sbin/e-smith/dynamic-dns/tzo
Now configure your system so that Dynamic DNS is configured when the DSL link comes up:
cp -a /etc/e-smith/events/ip-change/* /etc/e-smith/events/ip-up
Try this, and let me know how you get on. Don't forget to undo the changes that you've done so far.
Regards
Charlie