Changeset 31945


Ignore:
Timestamp:
2012-05-28T17:12:00+02:00 (6 years ago)
Author:
jow
Message:

[packages] updatedd: use network.sh to find device names

Location:
packages/net/updatedd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/updatedd/Makefile

    r29069 r31945  
    11# 
    2 # Copyright (C) 2007-2011 OpenWrt.org 
     2# Copyright (C) 2007-2012 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=updatedd 
    1111PKG_VERSION:=2.6 
    12 PKG_RELEASE:=8 
     12PKG_RELEASE:=9 
    1313 
    1414PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/ 
  • packages/net/updatedd/files/updatedd.hotplug

    r19865 r31945  
    44 
    55[ "$ACTION" = "ifup" ] && { 
    6         [ -x $COMMAND ] && [ -r $CONFIG ] && { 
    7                                 include /lib/network 
    8                                 scan_interfaces 
     6        [ -x $COMMAND ] && [ -r $CONFIG ] && { 
     7                . /lib/functions/network.sh 
    98 
    10                                 config_get ifname wan ifname 
    11                                 [ -n "$ifname" ] && { 
    12                                         /etc/init.d/updatedd restart 
    13                                 } 
    14         } & 
     9                local device 
     10                network_get_device device wan && { 
     11                        /etc/init.d/updatedd restart 
     12                } 
     13        } & 
    1514} 
Note: See TracChangeset for help on using the changeset viewer.