summaryrefslogtreecommitdiff
path: root/openwrt/package/ez-ipupdate/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-01 20:23:17 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-01 20:23:17 +0000
commit263e63a5f9994078dbc09914568f551ff6e50743 (patch)
tree3fc9ecb508481eb815a9cfdab1be13f0fe341f10 /openwrt/package/ez-ipupdate/files
parente8504d40dc8005f629969574dae3244d805ed8b8 (diff)
port changes in whiterussian ([3341]) to trunk.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3574 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/ez-ipupdate/files')
-rw-r--r--openwrt/package/ez-ipupdate/files/ez-ipupdate.conf4
-rw-r--r--openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug12
2 files changed, 10 insertions, 6 deletions
diff --git a/openwrt/package/ez-ipupdate/files/ez-ipupdate.conf b/openwrt/package/ez-ipupdate/files/ez-ipupdate.conf
index ac2d2ce7d2..cb98275fd3 100644
--- a/openwrt/package/ez-ipupdate/files/ez-ipupdate.conf
+++ b/openwrt/package/ez-ipupdate/files/ez-ipupdate.conf
@@ -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
diff --git a/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug b/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
index 56a054b4ac..eb7ab326c4 100644
--- a/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
+++ b/openwrt/package/ez-ipupdate/files/ez-ipupdate.hotplug
@@ -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
+ } &
}