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

git-svn-id: svn://svn.openwrt.org/openwrt/packages@31945 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-05-28 15:12:00 +00:00
parent 5a8c83cf92
commit 83506d17f1
2 changed files with 9 additions and 10 deletions

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2007-2011 OpenWrt.org # Copyright (C) 2007-2012 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=updatedd PKG_NAME:=updatedd
PKG_VERSION:=2.6 PKG_VERSION:=2.6
PKG_RELEASE:=8 PKG_RELEASE:=9
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/ PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2

View File

@ -3,13 +3,12 @@ CONFIG=/etc/config/$NAME
COMMAND=/usr/bin/$NAME COMMAND=/usr/bin/$NAME
[ "$ACTION" = "ifup" ] && { [ "$ACTION" = "ifup" ] && {
[ -x $COMMAND ] && [ -r $CONFIG ] && { [ -x $COMMAND ] && [ -r $CONFIG ] && {
include /lib/network . /lib/functions/network.sh
scan_interfaces
config_get ifname wan ifname local device
[ -n "$ifname" ] && { network_get_device device wan && {
/etc/init.d/updatedd restart /etc/init.d/updatedd restart
} }
} & } &
} }