#
-# Copyright (C) 2007-2011 OpenWrt.org
+# Copyright (C) 2007-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=updatedd
PKG_VERSION:=2.6
-PKG_RELEASE:=8
+PKG_RELEASE:=9
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.bz2
COMMAND=/usr/bin/$NAME
[ "$ACTION" = "ifup" ] && {
- [ -x $COMMAND ] && [ -r $CONFIG ] && {
- include /lib/network
- scan_interfaces
+ [ -x $COMMAND ] && [ -r $CONFIG ] && {
+ . /lib/functions/network.sh
- config_get ifname wan ifname
- [ -n "$ifname" ] && {
- /etc/init.d/updatedd restart
- }
- } &
+ local device
+ network_get_device device wan && {
+ /etc/init.d/updatedd restart
+ }
+ } &
}