PKG_NAME:=ddns-scripts
PKG_VERSION:=1.0.0
-PKG_RELEASE:=14
+PKG_RELEASE:=15
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
config service "myddns"
option enabled "0"
+ option interface "wan"
option service_name "dyndns.org"
option domain "mypersonaldomain.dyndns.org"
. /usr/lib/ddns/dynamic_dns_functions.sh
-if [ "$INTERFACE" = "wan" ] && [ "$ACTION" = "ifup" ]
-then
- start_daemon_for_all_ddns_sections
+if [ "$ACTION" = "ifup" ]; then
+ start_daemon_for_all_ddns_sections "$INTERFACE"
fi
start_daemon_for_all_ddns_sections()
{
+ local event_interface="$1"
+
SECTIONS=""
config_cb()
{
for section in $SECTIONS
do
+ local iface
+ config_get iface "$section" interface "wan"
+ [ "$iface" = "$event_interface" ] || continue
/usr/lib/ddns/dynamic_dns_updater.sh $section 0 > /dev/null 2>&1 &
done
}