[packages] parprouted: use network.sh to find devices

git-svn-id: svn://svn.openwrt.org/openwrt/packages@31949 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2012-05-28 15:38:58 +00:00
parent fe362a4df0
commit b69eb26300
2 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2011 OpenWrt.org # Copyright (C) 2006-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:=parprouted PKG_NAME:=parprouted
PKG_VERSION:=0.64 PKG_VERSION:=0.64
PKG_RELEASE:=3 PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/ PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/

View File

@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org # Copyright (C) 2006-2012 OpenWrt.org
START=50 START=50
@ -11,9 +11,9 @@ section_enabled() {
append_interface() { append_interface() {
local name="$1" local name="$1"
local interface local device
config_get interface "$name" 'ifname' "$name" network_get_device device "$name"
append args "$interface" append args "${device:-$name}"
} }
start_instance() { start_instance() {
@ -33,8 +33,8 @@ start_instance() {
} }
start() { start() {
include /lib/network . /lib/network/functions.sh
scan_interfaces
config_load 'parprouted' config_load 'parprouted'
config_foreach start_instance 'parprouted' config_foreach start_instance 'parprouted'
} }