[OpenWrt-Devel] /sbin/hotplug-call iface event never fired

2014-08-10 Thread Weiwu Zhang
I found this problem while trying to make ddns work.

This command updates ddns:
# ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface

But: 1) reboot would not update ddns; 2) if ip address changed in a
day, ddns would not update;

Thus it seems the hotplug event only happens if I invoke it manually.

So, now what? What to do next to check the problem? Thanks.

Background:
--
# uname -a
Linux OpenWrt 3.10.32 #5 Wed Mar 12 20:49:34 CST 2014 mips GNU/Linux
# head /etc/config/ddns

config service 'myddns'
option interface 'wan'
option use_syslog '1'
option use_https '0'
option force_interval '72'
option force_unit 'hours'
option check_interval '10'
option check_unit 'minutes'
option retry_interval '60'
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] /sbin/hotplug-call iface event never fired

2014-08-10 Thread Yousong Zhou
On Aug 10, 2014 8:43 PM, Weiwu Zhang zhangwe...@realss.com wrote:

 I found this problem while trying to make ddns work.

 This command updates ddns:
 # ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface

 But: 1) reboot would not update ddns; 2) if ip address changed in a
 day, ddns would not update;


The patch [1] has been posted for quite a while.  Can you check it and see
if it can at least fix the first problem.

[1] http://patchwork.openwrt.org/patch/4782/

Regards

yousong

 Thus it seems the hotplug event only happens if I invoke it manually.

 So, now what? What to do next to check the problem? Thanks.

 Background:
 --
 # uname -a
 Linux OpenWrt 3.10.32 #5 Wed Mar 12 20:49:34 CST 2014 mips GNU/Linux
 # head /etc/config/ddns

 config service 'myddns'
 option interface 'wan'
 option use_syslog '1'
 option use_https '0'
 option force_interval '72'
 option force_unit 'hours'
 option check_interval '10'
 option check_unit 'minutes'
 option retry_interval '60'
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] /sbin/hotplug-call iface event never fired

2014-08-10 Thread Weiwu Zhang



On Mon, 11 Aug 2014, Yousong Zhou wrote:


On Aug 10, 2014 8:43 PM, Weiwu Zhang zhangwe...@realss.com wrote:
The patch [1] has been posted for quite a while.  Can you check it and
see if it can at least fix the first problem.

[1] http://patchwork.openwrt.org/patch/4782/


Thanks for writing the patch. So, it was two different problems.

I confirm the first problem is solved with your patch. If the second problem 
presists, I'll start a seperate discussion thread.



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel