Changeset 27657


Ignore:
Timestamp:
2011-07-17T19:56:04+02:00 (7 years ago)
Author:
jow
Message:

[packages] ddns-scripts: add an option to specify the used interface - default to wan to retain compatibility (#7570)

Location:
packages/net/ddns-scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ddns-scripts/Makefile

    r26863 r27657  
    33PKG_NAME:=ddns-scripts 
    44PKG_VERSION:=1.0.0 
    5 PKG_RELEASE:=14 
     5PKG_RELEASE:=15 
    66 
    77PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • packages/net/ddns-scripts/files/etc/config/ddns

    r20810 r27657  
    6363config service "myddns" 
    6464        option enabled          "0" 
     65        option interface        "wan" 
    6566 
    6667        option service_name     "dyndns.org" 
  • packages/net/ddns-scripts/files/etc/hotplug.d/iface/25-ddns

    r12415 r27657  
    33. /usr/lib/ddns/dynamic_dns_functions.sh 
    44 
    5 if [ "$INTERFACE" = "wan" ] && [ "$ACTION" = "ifup" ] 
    6 then 
    7         start_daemon_for_all_ddns_sections 
     5if [ "$ACTION" = "ifup" ]; then 
     6        start_daemon_for_all_ddns_sections "$INTERFACE" 
    87fi 
    98 
  • packages/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

    r24869 r27657  
    111111start_daemon_for_all_ddns_sections() 
    112112{ 
     113        local event_interface="$1" 
     114 
    113115        SECTIONS="" 
    114116        config_cb()  
     
    120122        for section in $SECTIONS 
    121123        do 
     124                local iface 
     125                config_get iface "$section" interface "wan" 
     126                [ "$iface" = "$event_interface" ] || continue 
    122127                /usr/lib/ddns/dynamic_dns_updater.sh $section 0 > /dev/null 2>&1 & 
    123128        done 
Note: See TracChangeset for help on using the changeset viewer.