parent
7e36c32011
commit
6c2594b414
@ -1,8 +1,8 @@ |
||||
service-type=zoneedit |
||||
user=myname:mypassword |
||||
interface=WAN_IFNAME |
||||
host=mydomain.com |
||||
quiet |
||||
|
||||
# Do not change the lines below |
||||
cache-file=/tmp/ez-ipup |
||||
cache-file=/tmp/ez-ipupdate.cache |
||||
pid-file=/var/run/ez-ipupdate.pid |
||||
|
@ -1,6 +1,10 @@ |
||||
PGM=ez-ipupdate |
||||
. /etc/functions.sh |
||||
NAME=ez-ipupdate |
||||
CONFIG=/etc/$NAME.conf |
||||
COMMAND=/usr/sbin/$NAME |
||||
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { |
||||
[ -e /etc/$PGM.conf ] && { |
||||
[ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f1) ] && [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f2) ] && /usr/sbin/$PGM -c /etc/$PGM.conf & |
||||
} |
||||
[ -x $COMMAND ] && [ -r $CONFIG ] && { |
||||
IFNAME=$(nvram get ${INTERFACE}_ifname) |
||||
$COMMAND -c $CONFIG -i $IFNAME 2>&1 | logger -t $NAME |
||||
} & |
||||
} |
||||
|
@ -0,0 +1 @@ |
||||
/etc/ez-ipupdate.conf |
Loading…
Reference in new issue