Opened 10 years ago

Closed 8 years ago

Last modified 4 years ago

#2294 closed defect (fixed)

updatedd doesn't support different WAN interfaces

Reported by: openwrt@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Kamikaze trunk
Keywords: updatedd Cc:


Here's my hacked version of /etc/hotplug.d/iface/30-updatedd, that supports connecting updatedd configuration sections with interfaces:


run_updatedd() {
        local section="$1"
        config_get service   "$section" service
        config_get user      "$section" user
        config_get passwd    "$section" passwd
        config_get host      "$section" host
        config_get update    "$section" update
        config_get interface "$section" interface
        [ ."$interface" == "." ] && interface="wan"                            
        [ ."$interface" != ."$INTERFACE" ] && return 0                                     
        address=`ip addr show dev $DEVICE | sed -n '/inet/ s/.* inet \([0-9.]*\) .*/\1/ p'`  
        [ "$update" = 1 ] && /usr/bin/updatedd -Y $service -- -4 $address $user:$passwd $host
[ "$ACTION" = "ifup" ] && {                 
        config_load "updatedd"              
        config_foreach run_updatedd updatedd

Attachments (1)

updatedd.patch (3.5 KB) - added by openwrt@… 10 years ago.
My patch

Download all attachments as: .zip

Change History (7)

comment:1 Changed 10 years ago by anonymous

Please submit a diff (svn diff packages/net/updatedd) and attach to the ticket. Thanks.

comment:2 Changed 10 years ago by openwrt@…

I'm hoping there is a neater way to get the IP address, but that was the best I could do.

Also, the "interface" option should be documented.

Changed 10 years ago by openwrt@…

My patch

comment:3 Changed 10 years ago by openwrt@…

I should of course comment that this uses iproute2, which isn't in the default kamikaze install.

comment:4 Changed 10 years ago by brian@…

Sweet. Saves me filing this RFE myself.

Is there anything preventing this from landing (i.e. being committed to SVN)? updatedd would have to depend on iproute2 but afaic, that's no biggie.

comment:5 Changed 8 years ago by thepeople

  • Resolution set to fixed
  • Status changed from new to closed
  • Version set to Kamikaze trunk

Fixed another way in r19865.

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.