1#!/bin/sh
2# ez-ipupdate script to execute ip and time of last successful update saving
3CONFIG=/bin/config
4
5#set ip and time
6$CONFIG set update_ddns_time=$1
7$CONFIG set update_ddns_ipaddr=$2
8format_time=`cat /tmp/ez-ipupd.time`
9# set the update time format as Mon Mar 28 19:48:31 CST 2011 in config.
10# We need it to produce /tmp/ez-ipupd.time when reboot.
11$CONFIG set update_ddns_format_time="$format_time"
12$CONFIG commit
13
14
15